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.
20 lines
439 B
20 lines
439 B
8 years ago
|
class ReplaceMissingLocales < ActiveRecord::Migration
|
||
|
def change
|
||
|
Conference.where(locale: nil).each do |c|
|
||
|
c.update_attribute :locale, 'en'
|
||
|
end
|
||
|
|
||
|
Workshop.where(locale: nil).each do |c|
|
||
|
c.update_attribute :locale, 'en'
|
||
|
end
|
||
|
|
||
|
Event.where(locale: nil).each do |c|
|
||
|
c.update_attribute :locale, 'en'
|
||
|
end
|
||
|
|
||
|
City.where(locale: nil).each do |c|
|
||
|
c.update_attribute :locale, 'en'
|
||
|
end
|
||
|
end
|
||
|
end
|