An alternative locale that replaces "toot" with "ping", "favorite" with "florp", and "boost" with "relay", as well as a few other miscellaneous changes. Also includes alternate settings that make the en-CY locale default instead of en-US, and fixes the timestamps.
17 lines
309 B
Ruby
17 lines
309 B
Ruby
class EnToEnCy < ActiveRecord::Migration[5.1]
|
|
def up
|
|
User.find_each do |user|
|
|
if user.locale == 'en'
|
|
user.update(locale: 'en-CY')
|
|
end
|
|
end
|
|
end
|
|
|
|
def down
|
|
User.find_each do |user|
|
|
if user.locale == 'en-CY'
|
|
user.update(locale: 'en')
|
|
end
|
|
end
|
|
end
|
|
end
|