]> git.openstreetmap.org Git - rails.git/commitdiff
add the model
authorSteve Coast <steve@asklater.com>
Fri, 17 Nov 2006 18:47:37 +0000 (18:47 +0000)
committerSteve Coast <steve@asklater.com>
Fri, 17 Nov 2006 18:47:37 +0000 (18:47 +0000)
app/models/map.rb [new file with mode: 0644]
db/migrate/012_create_maps.rb [new file with mode: 0644]

diff --git a/app/models/map.rb b/app/models/map.rb
new file mode 100644 (file)
index 0000000..e7d4ce2
--- /dev/null
@@ -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 (file)
index 0000000..c44068a
--- /dev/null
@@ -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