2019-12-23 19:07:31 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
2021-08-03 02:08:50 -04:00
|
|
|
class PipelineConfig < Ci::ApplicationRecord
|
2019-12-23 19:07:31 -05:00
|
|
|
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
|