zrcadlo
https://github.com/redmine/redmine.git
synchronizováno 2024-07-27 07:37:45 +02:00
![Go MAEDA](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 řádky
307 B
Ruby
12 řádky
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
|