Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipeline_config.rb « ci « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e992aae2c51780246656de65c23cdadfdf69357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Ci
  class PipelineConfig < Ci::ApplicationRecord
    include Ci::Partitionable
    include SafelyChangeColumnDefault

    columns_changing_default :partition_id

    self.table_name = 'ci_pipelines_config'
    self.primary_key = :pipeline_id

    belongs_to :pipeline, class_name: "Ci::Pipeline", inverse_of: :pipeline_config
    validates :pipeline, presence: true
    validates :content, presence: true

    partitionable scope: :pipeline
  end
end