summaryrefslogtreecommitdiff
path: root/app/models/project_pages_metadatum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_pages_metadatum.rb')
-rw-r--r--app/models/project_pages_metadatum.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_pages_metadatum.rb b/app/models/project_pages_metadatum.rb
index 1fda388b1ae..8a1db4a9acf 100644
--- a/app/models/project_pages_metadatum.rb
+++ b/app/models/project_pages_metadatum.rb
@@ -4,6 +4,7 @@ class ProjectPagesMetadatum < ApplicationRecord
self.primary_key = :project_id
belongs_to :project, inverse_of: :pages_metadatum
+ belongs_to :artifacts_archive, class_name: 'Ci::JobArtifact'
scope :deployed, -> { where(deployed: true) }
end