2013-01-07 09:04:09 +01:00
|
|
|
class CreateEventPeopleTable < ActiveRecord::Migration
|
|
|
|
|
def self.up
|
|
|
|
|
create_table :event_people do |t|
|
|
|
|
|
t.references :proposal
|
|
|
|
|
t.references :person
|
|
|
|
|
t.references :event
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :event_role, null: false, default: "participant"
|
2013-01-07 09:04:09 +01:00
|
|
|
t.string :comment
|
|
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
|
drop_table :event_people
|
|
|
|
|
end
|
|
|
|
|
end
|