2012-03-04 16:51:35 +00:00
|
|
|
class CreateMaps < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :maps do |t|
|
2012-03-07 05:11:05 +00:00
|
|
|
t.string :name, :null => false
|
2012-03-04 16:51:35 +00:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
2012-03-08 02:22:35 +00:00
|
|
|
|
2012-03-08 04:43:32 +00:00
|
|
|
add_index :maps, [:name]
|
2012-03-04 16:51:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2012-03-08 04:43:32 +00:00
|
|
|
remove_index :maps, [:name]
|
2012-03-04 16:51:35 +00:00
|
|
|
drop_table :maps
|
|
|
|
end
|
|
|
|
end
|