summaryrefslogtreecommitdiff
path: root/app/models/project_pages_metadatum.rb
blob: 8a1db4a9acfeca27b1b77e1ae4d1f901335ece95 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

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