]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20121119165817_drop_nearby_place_from_notes.rb
Remove nearby_place from the note model
[rails.git] / db / migrate / 20121119165817_drop_nearby_place_from_notes.rb
diff --git a/db/migrate/20121119165817_drop_nearby_place_from_notes.rb b/db/migrate/20121119165817_drop_nearby_place_from_notes.rb
new file mode 100644 (file)
index 0000000..bbef259
--- /dev/null
@@ -0,0 +1,9 @@
+class DropNearbyPlaceFromNotes < ActiveRecord::Migration
+  def up
+    remove_column :notes, :nearby_place
+  end
+
+  def down
+    add_column :notes, :nearby_place, :string
+  end
+end