summaryrefslogtreecommitdiff
path: root/app/models/ci/project_mirror.rb
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-06-30 17:04:24 +0000
committerGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-06-30 17:04:24 +0000
commit36f4d31276f007359068c72362bf1ff7c691933a (patch)
treeeb47da84d0a03fdd1b8440eb2ce8f5821f11a1e2 /app/models/ci/project_mirror.rb
parent0847e5f57325e0518d8cd4ffe303e5b7a2cec307 (diff)
parent02cdf459a13199039eb98ad555442958157faf7c (diff)
downloadgitlab-ce-36f4d31276f007359068c72362bf1ff7c691933a.tar.gz
Merge remote-tracking branch 'dev/14-10-stable' into 14-10-stable
Diffstat (limited to 'app/models/ci/project_mirror.rb')
-rw-r--r--app/models/ci/project_mirror.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/project_mirror.rb b/app/models/ci/project_mirror.rb
index 9000d1791a6..15a161d5b7c 100644
--- a/app/models/ci/project_mirror.rb
+++ b/app/models/ci/project_mirror.rb
@@ -4,6 +4,8 @@ module Ci
# This model represents a shadow table of the main database's projects table.
# It allows us to navigate the project and namespace hierarchy on the ci database.
class ProjectMirror < ApplicationRecord
+ include FromUnion
+
belongs_to :project
scope :by_namespace_id, -> (namespace_id) { where(namespace_id: namespace_id) }