blob: eca2e5a740e1d595517f07ad3dc26ec1d3a0ffc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
class ProjectPagesMetadatum < ApplicationRecord
extend SuppressCompositePrimaryKeyWarning
include EachBatch
include IgnorableColumns
self.primary_key = :project_id
belongs_to :project, inverse_of: :pages_metadatum
belongs_to :pages_deployment
scope :deployed, -> { where(deployed: true) }
scope :with_project_route_and_deployment, -> { preload(:pages_deployment, project: [:namespace, :route]) }
end
|