diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-01 13:23:41 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:38:35 +0300 |
commit | 324cfe0f9be8bd8eeb00736a670d3aaf4b5dedb9 (patch) | |
tree | e8ef1ed2aa340fc67cef2b44e03af3679cbe94b6 /app/models/ci/pipeline_schedule_variable.rb | |
parent | 5e7db4e36c46f5807d7b486baf90c18dd1a5805f (diff) |
Fix spec. Add PipelineScheduleVariable for import_export
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 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 |