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.
 
 
 
 
 
 

9 lines
305 B

class AddRegistrationStatusToConferences < ActiveRecord::Migration
def change
add_column :conferences, :registration_status, :string
Conference.find_each do |conference|
conference.registration_status = conference.registration_open ? :open : :closed
conference.save!
end
end
end