2019-09-25 05:06:04 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ProjectPagesMetadatum < ApplicationRecord
|
|
|
|
self.primary_key = :project_id
|
|
|
|
|
|
|
|
belongs_to :project, inverse_of: :pages_metadatum
|
2020-08-31 14:10:43 -04:00
|
|
|
belongs_to :artifacts_archive, class_name: 'Ci::JobArtifact'
|
2019-09-25 05:06:04 -04:00
|
|
|
|
|
|
|
scope :deployed, -> { where(deployed: true) }
|
|
|
|
end
|