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