ensl.org/db/migrate/20170501121908_create_match_proposals.rb
2017-05-01 16:57:32 +02:00

14 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