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:38:35 +0900 |
commit | d19f9a96755c9b50f86e8aaf3181f044065c8f44 (patch) | |
tree | 2711b97a69123b9653ec2298b1f321019e8448b2 /app | |
parent | 324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9 (diff) | |
download | gitlab-ce-d19f9a96755c9b50f86e8aaf3181f044065c8f44.tar.gz |
Exclude schedule variables from Import/Export feature
Diffstat (limited to 'app')
-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 |