diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-01 19:23:41 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:38:35 +0900 |
commit | 324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9 (patch) | |
tree | e8ef1ed2aa340fc67cef2b44e03af3679cbe94b6 /app | |
parent | 5e7db4e36c46f5807d7b486baf90c18dd1a5805f (diff) | |
download | gitlab-ce-324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9.tar.gz |
Fix spec. Add PipelineScheduleVariable for import_export
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 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 |