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:
parent
80238df3ca
commit
dd294f89b8
1 changed files with 2 additions and 0 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue