socialforge/db/migrate/20161220090638_create_conte...

14 lines
329 B
Ruby

class CreateContestMembers < ActiveRecord::Migration
def change
create_table :contest_members do |t|
t.references :user
t.references :contest
t.boolean :is_collect, :default => true
t.timestamps
end
add_index :contest_members, :user_id
add_index :contest_members, :contest_id
end
end