20091010093521_fix_users_custom_values.rb
11 lines
| 302 B
| text/x-ruby
|
RubyLexer
|
r2791 | class FixUsersCustomValues < ActiveRecord::Migration | ||
def self.up | ||||
|
r12213 | CustomValue.where("customized_type = 'User'"). | ||
update_all("customized_type = 'Principal'") | ||||
|
r2791 | end | ||
def self.down | ||||
|
r12213 | CustomValue.where("customized_type = 'Principal'"). | ||
update_all("customized_type = 'User'") | ||||
|
r2791 | end | ||
end | ||||