summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-07 01:24:49 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-07 02:49:24 +0900
commitf8391bd782ef9a19b6c8595331ada49721bd89be (patch)
treeea821e8e2908f81eb6b04b61425014ed8ce56a35 /app/models
parent07c7edd3e38eed58962268c06908e85a7ddfe381 (diff)
downloadgitlab-ce-f8391bd782ef9a19b6c8595331ada49721bd89be.tar.gz
Remove validates :key, uniqueness due to new validator covers the casefeature/intermediate/32568-adding-variables-to-pipelines-schedules
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/pipeline_schedule_variable.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/ci/pipeline_schedule_variable.rb b/app/models/ci/pipeline_schedule_variable.rb
index ee5b8733fac..1ff177616e8 100644
--- a/app/models/ci/pipeline_schedule_variable.rb
+++ b/app/models/ci/pipeline_schedule_variable.rb
@@ -4,7 +4,5 @@ module Ci
include HasVariable
belongs_to :pipeline_schedule
-
- validates :key, uniqueness: { scope: :pipeline_schedule_id }
end
end