Ignore the users.nearby column

This is the first step of removing the column, see #2417. It needs to be
deployed before a migration to remove it, since the columns are
cached in ActiveRecord and things break if objects exist in memory
that expect the column to be there.
This commit is contained in:
Andy Allan 2019-11-13 14:19:32 +01:00
parent 80238df3ca
commit dd294f89b8

View file

@ -46,6 +46,8 @@
class User < ActiveRecord::Base
require "xml/libxml"
self.ignored_columns = ["nearby"]
has_many :traces, -> { where(:visible => true) }
has_many :diary_entries, -> { order(:created_at => :desc) }
has_many :diary_comments, -> { order(:created_at => :desc) }