mirror of
https://github.com/redmine/redmine.git
synced 2024-09-08 05:41:43 +02:00
3b55f65407
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 lines
307 B
Ruby
12 lines
307 B
Ruby
class FixUsersCustomValues < ActiveRecord::Migration[4.2]
|
|
def self.up
|
|
CustomValue.where("customized_type = 'User'").
|
|
update_all("customized_type = 'Principal'")
|
|
end
|
|
|
|
def self.down
|
|
CustomValue.where("customized_type = 'Principal'").
|
|
update_all("customized_type = 'User'")
|
|
end
|
|
end
|