mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Adding social events, which can be used on the registration page
This commit is contained in:
parent
ba721772b9
commit
3933e89a9c
14 changed files with 112 additions and 6 deletions
14
db/migrate/20130216070725_create_social_events_table.rb
Normal file
14
db/migrate/20130216070725_create_social_events_table.rb
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
class SetRegistrationDefaultsToFalse < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :registrations, :using_affiliated_lodging, :boolean, :default => false
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddSpecialNeedsFieldToRegistrations < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrations, :other_special_needs, :text
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue