fixed 删除用户时保留附件数据
This commit is contained in:
parent
ebb1ff76ea
commit
b07fa509e1
|
@ -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…
Reference in New Issue