Trying to get round generation and fill figured out TDD style
This commit is contained in:
@@ -2,18 +2,15 @@ class CreateMaps < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :maps do |t|
|
||||
t.string :name, :null => false
|
||||
t.integer :points, :default => 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :maps, [:name]
|
||||
add_index :maps, [:points]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :maps, [:name]
|
||||
remove_index :maps, [:points]
|
||||
drop_table :maps
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user