summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-01 19:23:41 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:38:35 +0900
commit324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9 (patch)
treee8ef1ed2aa340fc67cef2b44e03af3679cbe94b6 /app
parent5e7db4e36c46f5807d7b486baf90c18dd1a5805f (diff)
downloadgitlab-ce-324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9.tar.gz
Fix spec. Add PipelineScheduleVariable for import_export
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline_schedule_variable.rb2
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 ee5b8733fac..6c9c8d990f9 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 }
+ validates :key, uniqueness: { scope: :pipeline_schedule_id }, presence: { unless: :importing? }
end
end