2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
2021-10-27 15:23:28 +05:30
|
|
|
class PipelineConfig < Ci::ApplicationRecord
|
2020-03-13 15:44:24 +05:30
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|