From 395491d4356c800eeda48808fbd2d0402248da07 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Sat, 1 Jul 2017 19:30:01 +0900 Subject: Exclude schedule variables from Import/Export feature --- app/models/ci/pipeline_schedule_variable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/ci/pipeline_schedule_variable.rb') 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 -- cgit v1.2.1