X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/91a37235ac748df7dc241b215790d6cbecd652f3..3a43f9fe0421afdf74d2f570ee8987a4022519cf:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index ae68c3998..518cb94cc 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -14,7 +14,6 @@ # home_zoom :integer default(3) # nearby :integer default(50) # pass_salt :string -# image_file_name :text # email_valid :boolean default(FALSE), not null # new_email :string # creation_ip :string @@ -26,12 +25,10 @@ # preferred_editor :string # terms_seen :boolean default(FALSE), not null # description_format :enum default("markdown"), not null -# image_fingerprint :string # changesets_count :integer default(0), not null # traces_count :integer default(0), not null # diary_entries_count :integer default(0), not null # image_use_gravatar :boolean default(FALSE), not null -# image_content_type :string # auth_provider :string # home_tile :bigint(8) # tou_agreed :datetime @@ -46,11 +43,9 @@ # users_home_idx (home_tile) # -class User < ActiveRecord::Base +class User < ApplicationRecord require "xml/libxml" - self.ignored_columns = %w[image_file_name image_fingerprint image_content_type] - has_many :traces, -> { where(:visible => true) } has_many :diary_entries, -> { order(:created_at => :desc) } has_many :diary_comments, -> { order(:created_at => :desc) }