Skip to content

Commit

Permalink
PostSpamDomains error preventing user destruction: Shot in the dark
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Nov 18, 2021
1 parent 7bb8431 commit 398a3b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class User < ApplicationRecord
has_many :moderator_sites, dependent: :destroy
has_many :reviews, class_name: 'ReviewResult', dependent: :nullify
has_many :post_comments, dependent: :nullify
has_many :post_spam_domains, foreign_key: 'added_by_id', dependent: :nullify

has_one :channels_user, required: false, dependent: :destroy

Expand Down

0 comments on commit 398a3b2

Please sign in to comment.