ensl.org/db/migrate/20170501121908_create_match_proposals.rb

15 lines
335 B
Ruby
Raw Normal View History

2017-05-01 14:57:32 +00:00
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