Browse Source

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

pull/347/head
xxq250 1 year ago
parent
commit
b07fa509e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/user.rb

+ 1
- 1
app/models/user.rb 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



Loading…
Cancel
Save