mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 05:21:19 +00:00
15 lines
335 B
Ruby
15 lines
335 B
Ruby
|
class CreateMatchProposals < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :match_proposals do |t|
|
||
|
t.references :match
|
||
|
t.references :team
|
||
|
t.integer :status
|
||
|
t.datetime :proposed_time
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :match_proposals, :match_id
|
||
|
add_index :match_proposals, :team_id
|
||
|
end
|
||
|
end
|