diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-01 19:30:01 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:36:19 +0900 |
commit | 395491d4356c800eeda48808fbd2d0402248da07 (patch) | |
tree | 0f47d01f9d0a1dcecfdf065cb4c6c55d70a19200 /app/models/ci/pipeline_schedule_variable.rb | |
parent | b6f41544d8a9ca4b13045b8f9d063367be17404f (diff) | |
download | gitlab-ce-395491d4356c800eeda48808fbd2d0402248da07.tar.gz |
Exclude schedule variables from Import/Export feature
Diffstat (limited to 'app/models/ci/pipeline_schedule_variable.rb')
-rw-r--r-- | app/models/ci/pipeline_schedule_variable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline_schedule_variable.rb b/app/models/ci/pipeline_schedule_variable.rb index 6c9c8d990f9..ee5b8733fac 100644 --- a/app/models/ci/pipeline_schedule_variable.rb +++ b/app/models/ci/pipeline_schedule_variable.rb @@ -5,6 +5,6 @@ module Ci belongs_to :pipeline_schedule - validates :key, uniqueness: { scope: :pipeline_schedule_id }, presence: { unless: :importing? } + validates :key, uniqueness: { scope: :pipeline_schedule_id } end end |