socialforge/db/migrate/20161222063638_create_appli...

15 lines
332 B
Ruby

class CreateAppliedContests < ActiveRecord::Migration
def change
create_table :applied_contests do |t|
t.references :contest
t.references :user
t.string :role
t.integer :status
t.timestamps
end
add_index :applied_contests, :contest_id
add_index :applied_contests, :user_id
end
end