You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
352 B
17 lines
352 B
class CreateMashTournaments < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :mash_tournaments do |t|
|
|
t.references :requester, :null => false
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :mash_tournaments, [:requester_id]
|
|
end
|
|
|
|
def self.down
|
|
drop_table :mash_tournaments
|
|
remove_index :mash_tournaments, [:requester_id]
|
|
end
|
|
end
|