mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Deleting a user was not deleting their directory items
This commit is contained in:
@@ -40,6 +40,7 @@ class User < ActiveRecord::Base
|
||||
has_many :warnings
|
||||
has_many :user_archived_messages, dependent: :destroy
|
||||
has_many :email_change_requests, dependent: :destroy
|
||||
has_many :directory_items, dependent: :delete_all
|
||||
|
||||
|
||||
has_one :user_option, dependent: :destroy
|
||||
|
||||
Reference in New Issue
Block a user