debian-mirror-gitlab/app/models/project_pages_metadatum.rb
2021-01-30 21:13:32 +05:30

11 lines
312 B
Ruby

# 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'
belongs_to :pages_deployment
scope :deployed, -> { where(deployed: true) }
end