From 3eb90105df21746047b3fcc854a369b5f083624b Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Sun, 19 Jul 2020 03:56:17 +0000 Subject: [PATCH] Remove obsolete includes --- app/models/user.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 0d2bd4e02..a93048a9a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -80,7 +80,6 @@ class User < ApplicationRecord validates_presence_of :comment_threshold before_validation :normalize_blacklisted_tags before_create :promote_to_admin_if_first_user - has_many :artists, foreign_key: :creator_id has_many :artist_versions, foreign_key: :updater_id has_many :artist_commentary_versions, foreign_key: :updater_id has_many :comments, foreign_key: :creator_id @@ -91,7 +90,6 @@ class User < ApplicationRecord has_many :forum_topic_visits, dependent: :destroy has_many :visited_forum_topics, through: :forum_topic_visits, source: :forum_topic has_many :moderation_reports, as: :model - has_many :pools, foreign_key: :creator_id has_many :posts, :foreign_key => "uploader_id" has_many :post_appeals, foreign_key: :creator_id has_many :post_approvals, :dependent => :destroy @@ -105,7 +103,6 @@ class User < ApplicationRecord has_one :api_key has_one :token_bucket has_one :email_address, dependent: :destroy - has_many :notes, foreign_key: :creator_id has_many :note_versions, :foreign_key => "updater_id" has_many :dmails, -> {order("dmails.id desc")}, :foreign_key => "owner_id" has_many :saved_searches