db/migrate/20150519124846_remove_unstandardized_custom_languages.rb
# Redefine all Active Record models, so that the migration doesn't depend on the version of code
Redefine all Active Record models, so that the migration doesn't depend on the version of code
Redefine all Active Record models so that the migration doesn ' t depend on the version of code
def change_model_locale(models, new_locale)
    models.each { |m|
      m.update_attribute(:locale, new_locale)
    }
  end
def change_model_locale ( models , new_locale ) models . each { | m | m . update_attribute ( :locale , new_locale ) } end
Redefine all Active Record models, so that the migration doesn't depend on the version of code
Redefine all Active Record models so that the migration doesn ' t depend on the version of code
models
new_locale