mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 13:01:02 +00:00
14 lines
335 B
Ruby
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
|