debian-mirror-gitlab/app/models/project_pages_metadatum.rb

12 lines
312 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
class ProjectPagesMetadatum < ApplicationRecord
self.primary_key = :project_id
belongs_to :project, inverse_of: :pages_metadatum
2020-11-24 15:15:51 +05:30
belongs_to :artifacts_archive, class_name: 'Ci::JobArtifact'
2021-01-03 14:25:43 +05:30
belongs_to :pages_deployment
2019-12-21 20:55:43 +05:30
scope :deployed, -> { where(deployed: true) }
end