Modifying the mash tournament schema a touch and adding a slew of scaffold-y stuff
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
class CreateMashTournaments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :mash_tournaments do |t|
|
||||
t.integer :requester_id
|
||||
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
|
||||
|
Reference in New Issue
Block a user