Adding social events, which can be used on the registration page

This commit is contained in:
Matt Barringer 2013-02-16 13:30:53 +01:00
parent ba721772b9
commit 3933e89a9c
14 changed files with 112 additions and 6 deletions

View file

@ -0,0 +1,14 @@
class CreateSocialEventsTable < ActiveRecord::Migration
def up
create_table :social_events do |t|
t.references :conference
t.string :title
t.text :description
t.date :date
end
end
def down
drop_table :social_events
end
end

View file

@ -0,0 +1,11 @@
class CreateRegistrationsSocialEventsTable < ActiveRecord::Migration
def up
create_table :registrations_social_events, :id => false do |t|
t.references :registration, :social_event
end
end
def down
drop_table :registrations_social_events
end
end

View file

@ -0,0 +1,8 @@
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration
def up
change_column :registrations, :using_affiliated_lodging, :boolean, :default => false
end
def down
end
end

View file

@ -0,0 +1,5 @@
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration
def change
add_column :registrations, :other_special_needs, :text
end
end