git-subtree-dir: map-mash git-subtree-mainline: eacc351b17aef1e36dd67b46625d6f9243988b43 git-subtree-split: 7f16409d1257e7471fef35c18bcdf32856b908e3
17 lines
268 B
Ruby
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
|