mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
ADD ci namespace modle associations
This commit is contained in:
@@ -2,6 +2,7 @@ class Ci::Repo < Ci::RemoteBase
|
||||
self.primary_key = 'repo_id'
|
||||
|
||||
belongs_to :user, foreign_key: :repo_user_id
|
||||
has_one :perm, foreign_key: :perm_repo_uid, dependent: :destroy
|
||||
has_many :builds, foreign_key: "build_repo_id", dependent: :destroy
|
||||
|
||||
def self.find_with_namespace(namespace_path, identifier)
|
||||
|
||||
Reference in New Issue
Block a user