ADD ci namespace modle associations

This commit is contained in:
Jasder
2020-09-10 10:53:12 +08:00
parent d802b8aba4
commit 217dfc03b2
5 changed files with 7 additions and 4 deletions
+1
View File
@@ -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)