Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
16
oldstuff/map-mash/db/migrate/20120304151123_create_maps.rb
Normal file
16
oldstuff/map-mash/db/migrate/20120304151123_create_maps.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user