Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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