17 lines
335 B
Ruby
17 lines
335 B
Ruby
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
|
|
end
|
|
|
|
def self.down
|
|
drop_table :mashes
|
|
end
|
|
end
|