mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
FIX ci repos dependent destroy bug
This commit is contained in:
@@ -2,7 +2,7 @@ class Ci::User < Ci::RemoteBase
|
||||
self.primary_key = 'user_id'
|
||||
|
||||
has_many :repos, foreign_key: "repo_user_id", dependent: :destroy
|
||||
has_many :perms, foreign_key: "perm_user_id", dependent: :destroy
|
||||
has_many :perms, foreign_key: "perm_user_id", dependent: :delete_all
|
||||
has_one :ci_cloud_account, class_name: 'Ci::CloudAccount', foreign_key: :ci_user_id
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user