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.
9 lines
180 B
Ruby
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
|