Ignore the creation_ip column which is no longer used
This commit is contained in:
parent
fe96c0a524
commit
5bac49c51f
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,6 @@
|
||||||
# pass_salt :string
|
# pass_salt :string
|
||||||
# email_valid :boolean default(FALSE), not null
|
# email_valid :boolean default(FALSE), not null
|
||||||
# new_email :string
|
# new_email :string
|
||||||
# creation_ip :string
|
|
||||||
# languages :string
|
# languages :string
|
||||||
# status :enum default("pending"), not null
|
# status :enum default("pending"), not null
|
||||||
# terms_agreed :datetime
|
# terms_agreed :datetime
|
||||||
|
@ -50,6 +49,8 @@ class User < ApplicationRecord
|
||||||
require "digest"
|
require "digest"
|
||||||
include AASM
|
include AASM
|
||||||
|
|
||||||
|
self.ignored_columns += ["creation_ip"]
|
||||||
|
|
||||||
has_many :traces, -> { where(:visible => true) }
|
has_many :traces, -> { where(:visible => true) }
|
||||||
has_many :diary_entries, -> { order(:created_at => :desc) }, :inverse_of => :user
|
has_many :diary_entries, -> { order(:created_at => :desc) }, :inverse_of => :user
|
||||||
has_many :diary_comments, -> { order(:created_at => :desc) }, :inverse_of => :user
|
has_many :diary_comments, -> { order(:created_at => :desc) }, :inverse_of => :user
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue