From 3888bc4261500c275759683076e07baaf352e5ec Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 24 Dec 2019 00:07:31 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/models/ci/pipeline_config.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/models/ci/pipeline_config.rb (limited to 'app/models/ci/pipeline_config.rb') diff --git a/app/models/ci/pipeline_config.rb b/app/models/ci/pipeline_config.rb new file mode 100644 index 00000000000..d5a8da2bc1e --- /dev/null +++ b/app/models/ci/pipeline_config.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Ci + class PipelineConfig < ApplicationRecord + extend Gitlab::Ci::Model + + 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 -- cgit v1.2.1