First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
18
db/migrate/20121223122307_create_event_people_table.rb
Normal file
18
db/migrate/20121223122307_create_event_people_table.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
class CreateEventPeopleTable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :event_people do |t|
|
||||
t.references :proposal
|
||||
t.references :person
|
||||
t.references :event
|
||||
t.string :event_role, :null => false, :default => "participant"
|
||||
t.string :comment
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :event_people
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue