From: Tom Hughes Date: Sun, 15 Sep 2024 18:35:05 +0000 (+0100) Subject: Ignore the creation_ip column which is no longer used X-Git-Tag: live~182^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5bac49c51fcd8a619f0ae515ce734aa9ca31e43b Ignore the creation_ip column which is no longer used --- diff --git a/app/models/user.rb b/app/models/user.rb index 441805f39..6b5418256 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -15,7 +15,6 @@ # pass_salt :string # email_valid :boolean default(FALSE), not null # new_email :string -# creation_ip :string # languages :string # status :enum default("pending"), not null # terms_agreed :datetime @@ -50,6 +49,8 @@ class User < ApplicationRecord require "digest" include AASM + self.ignored_columns += ["creation_ip"] + has_many :traces, -> { where(:visible => true) } has_many :diary_entries, -> { order(:created_at => :desc) }, :inverse_of => :user has_many :diary_comments, -> { order(:created_at => :desc) }, :inverse_of => :user