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:
parent
fd6abf41bf
commit
0a3aba7f89
6 changed files with 22 additions and 23 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue