openstreetmap-website/db/migrate/20121119165817_drop_nearby_place_from_notes.rb
Kai Krueger 0a3aba7f89 Remove nearby_place from the note model
Instead of storing the auto-generated meta information nearby_place
in the database, just look up the information on the fly when needed
and cache it for performance.
2012-12-01 18:18:09 +00:00

9 lines
180 B
Ruby

class DropNearbyPlaceFromNotes < ActiveRecord::Migration
def up
remove_column :notes, :nearby_place
end
def down
add_column :notes, :nearby_place, :string
end
end