ADD gitea databse config

This commit is contained in:
Jasder
2020-09-27 15:30:44 +08:00
parent a308862567
commit 3621f4ff48
7 changed files with 25 additions and 15 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ 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
has_one :perm, foreign_key: :perm_repo_uid
has_many :builds, foreign_key: :build_repo_id, dependent: :destroy
def self.find_with_namespace(namespace_path, identifier)
logger.info "########namespace_path: #{namespace_path} ########identifier: #{identifier} "