Remove obsolete includes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user