Scaffolding in some mashy stuff

This commit is contained in:
Dan Buch
2012-03-04 11:51:35 -05:00
parent fedeefef98
commit 57f63fd62f
29 changed files with 626 additions and 322 deletions

View File

@@ -0,0 +1,13 @@
class CreateMaps < ActiveRecord::Migration
def self.up
create_table :maps do |t|
t.string :name
t.timestamps
end
end
def self.down
drop_table :maps
end
end

View File

@@ -0,0 +1,16 @@
class CreateMashes < ActiveRecord::Migration
def self.up
create_table :mashes do |t|
t.string :requester
t.integer :map_a
t.integer :map_b
t.integer :winner
t.timestamps
end
end
def self.down
drop_table :mashes
end
end