2017-05-01 14:57:32 +00:00
|
|
|
class CreateMatchProposals < ActiveRecord::Migration
|
2017-10-13 15:53:48 +00:00
|
|
|
def up
|
2017-05-01 14:57:32 +00:00
|
|
|
create_table :match_proposals do |t|
|
2017-10-13 15:53:48 +00:00
|
|
|
t.references :match, index: true, forign_key: true
|
|
|
|
t.references :team, forign_key: true
|
2017-05-01 14:57:32 +00:00
|
|
|
t.datetime :proposed_time
|
2017-10-13 15:53:48 +00:00
|
|
|
t.integer :status
|
2017-05-01 14:57:32 +00:00
|
|
|
end
|
2017-10-13 15:53:48 +00:00
|
|
|
|
|
|
|
add_index :match_proposals, :status
|
2017-05-01 14:57:32 +00:00
|
|
|
end
|
2017-10-13 15:53:48 +00:00
|
|
|
|
|
|
|
def down; end
|
2017-05-01 14:57:32 +00:00
|
|
|
end
|