clarion/db/migrate/20150729135346_create_participations.rb

12 lines
320 B
Ruby
Raw Normal View History

class CreateParticipations < ActiveRecord::Migration
def change
create_table :participations do |t|
t.references :participant, index: true, foreign_key: true
t.references :event, index: true, foreign_key: true
t.boolean :approved, default: false
t.timestamps null: false
end
end
end