diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-04-18 17:32:33 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-04-18 17:32:33 +0200 |
commit | b32eabb153911b78d7ad1f6c8e3edfde482dd56a (patch) | |
tree | a1898328521d2408d43ab895cae157ed8420e961 /app/models/ci/pipeline_variable.rb | |
parent | 3a5773ce07f2f2bdc4f4473b62a2ccdc15c07d92 (diff) | |
download | gitlab-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.rb | 2 |
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 |