summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_variable.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-04-18 17:32:33 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-04-18 17:32:33 +0200
commitb32eabb153911b78d7ad1f6c8e3edfde482dd56a (patch)
treea1898328521d2408d43ab895cae157ed8420e961 /app/models/ci/pipeline_variable.rb
parent3a5773ce07f2f2bdc4f4473b62a2ccdc15c07d92 (diff)
downloadgitlab-ce-b32eabb153911b78d7ad1f6c8e3edfde482dd56a.tar.gz
Alias value to secret_value in Ci::PipelineVariable
Diffstat (limited to 'app/models/ci/pipeline_variable.rb')
-rw-r--r--app/models/ci/pipeline_variable.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_variable.rb b/app/models/ci/pipeline_variable.rb
index de5aae17a15..38e14ffbc0c 100644
--- a/app/models/ci/pipeline_variable.rb
+++ b/app/models/ci/pipeline_variable.rb
@@ -5,6 +5,8 @@ module Ci
belongs_to :pipeline
+ alias_attribute :secret_value, :value
+
validates :key, uniqueness: { scope: :pipeline_id }
end
end