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.
20 lines
401 B
20 lines
401 B
class CreateMashes < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :mashes do |t|
|
|
t.string :requester, :null => false
|
|
t.integer :map_a, :null => false
|
|
t.integer :map_b, :null => false
|
|
t.integer :winner, :null => false
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :mashes, :winner
|
|
end
|
|
|
|
def self.down
|
|
drop_table :mashes
|
|
remove_index :mashes, :winner
|
|
end
|
|
end
|