You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20091010093521_fix_users_custom_values.rb 307B

1234567891011
  1. class FixUsersCustomValues < ActiveRecord::Migration[4.2]
  2. def self.up
  3. CustomValue.where("customized_type = 'User'").
  4. update_all("customized_type = 'Principal'")
  5. end
  6. def self.down
  7. CustomValue.where("customized_type = 'Principal'").
  8. update_all("customized_type = 'User'")
  9. end
  10. end