summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_config.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-24 00:07:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-24 00:07:31 +0000
commit3888bc4261500c275759683076e07baaf352e5ec (patch)
treeeb70e0415be41a1d713cc89f211a6045778cd6b8 /app/models/ci/pipeline_config.rb
parent33e1622bfe5afb2eea08ff06e44de490383a93e3 (diff)
downloadgitlab-ce-3888bc4261500c275759683076e07baaf352e5ec.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/ci/pipeline_config.rb')
-rw-r--r--app/models/ci/pipeline_config.rb14
1 files changed, 14 insertions, 0 deletions
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