2013-01-07 09:04:09 +01:00
|
|
|
class CreateRegistrationsTable < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :registrations do |t|
|
|
|
|
|
t.references :person
|
|
|
|
|
t.references :conference
|
|
|
|
|
|
2014-07-21 14:49:05 +02:00
|
|
|
t.boolean :attending_social_events, default: true
|
|
|
|
|
t.boolean :attending_social_events_with_partner, default: false
|
|
|
|
|
t.boolean :using_affiliated_lodging, default: true
|
2013-01-07 09:04:09 +01:00
|
|
|
t.date :arrival
|
|
|
|
|
t.date :departure
|
|
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
end
|
|
|
|
|
end
|