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 where_unstandard_locales(community_model, unstandard_locales)
    query = unstandard_locales.map { |l|
      "settings LIKE '%#{l}%'"
    }.join(" OR ")
    community_model.where(query)
  end
def where_unstandard_locales ( community_model , unstandard_locales ) query = unstandard_locales . map { | l | "settings LIKE '%#{l}%'" } . join ( " OR " ) community_model . where ( query ) 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
community_model
unstandard_locales