fixed 删除用户时保留附件数据

This commit is contained in:
xxq250 2024-10-10 09:38:29 +08:00
parent ebb1ff76ea
commit b07fa509e1
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class User < Owner
has_many :tidings, :dependent => :destroy
# has_many :journals_for_messages, :as => :jour, :dependent => :destroy
has_many :attachments,foreign_key: :author_id, :dependent => :destroy
has_many :attachments,foreign_key: :author_id
has_one :ci_cloud_account, class_name: 'Ci::CloudAccount', dependent: :destroy