box-o-sand/db/migrate/20120304151123_create_maps.rb
2012-04-03 23:02:32 -04:00

17 lines
268 B
Ruby

class CreateMaps < ActiveRecord::Migration
def self.up
create_table :maps do |t|
t.string :name, :null => false
t.timestamps
end
add_index :maps, [:name]
end
def self.down
remove_index :maps, [:name]
drop_table :maps
end
end