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.
This commit is contained in:
Kai Krueger 2012-11-20 16:10:07 -07:00 committed by Tom Hughes
parent fd6abf41bf
commit 0a3aba7f89
6 changed files with 22 additions and 23 deletions

View file

@ -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