You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
268 B
17 lines
268 B
13 years ago
|
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
|