add the model
This commit is contained in:
parent
d7be818949
commit
5f2116df78
2 changed files with 13 additions and 0 deletions
2
app/models/map.rb
Normal file
2
app/models/map.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Map < ActiveRecord::Base
|
||||
end
|
11
db/migrate/012_create_maps.rb
Normal file
11
db/migrate/012_create_maps.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateMaps < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :maps do |t|
|
||||
# t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :maps
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue