Bike!Bike! Website!
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.
 
 
 
 
 
 

19 lines
439 B

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