From 5f2116df7861b81c03bca704102591a4639c88c2 Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Fri, 17 Nov 2006 18:47:37 +0000 Subject: [PATCH] add the model --- app/models/map.rb | 2 ++ db/migrate/012_create_maps.rb | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 app/models/map.rb create mode 100644 db/migrate/012_create_maps.rb diff --git a/app/models/map.rb b/app/models/map.rb new file mode 100644 index 000000000..e7d4ce281 --- /dev/null +++ b/app/models/map.rb @@ -0,0 +1,2 @@ +class Map < ActiveRecord::Base +end diff --git a/db/migrate/012_create_maps.rb b/db/migrate/012_create_maps.rb new file mode 100644 index 000000000..c44068a20 --- /dev/null +++ b/db/migrate/012_create_maps.rb @@ -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 -- 2.43.2