2009-10-10 14:16:00 +04:00
|
|
|
class FixUsersCustomValues < ActiveRecord::Migration
|
|
|
|
def self.up
|
2014-01-07 14:03:11 +04:00
|
|
|
CustomValue.where("customized_type = 'User'").
|
|
|
|
update_all("customized_type = 'Principal'")
|
2009-10-10 14:16:00 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2014-01-07 14:03:11 +04:00
|
|
|
CustomValue.where("customized_type = 'Principal'").
|
|
|
|
update_all("customized_type = 'User'")
|
2009-10-10 14:16:00 +04:00
|
|
|
end
|
|
|
|
end
|