diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-04 19:04:21 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:38:37 +0900 |
commit | 8f0a2b6d780347a5ce258ac1a6a6902ce9695ca1 (patch) | |
tree | 51e964abf1ff7af7da05f0d1418d8b4aef159d35 /app/models/ci/pipeline_schedule.rb | |
parent | 6128f286fa5801490be7cc033e827673f0418ff7 (diff) | |
download | gitlab-ce-8f0a2b6d780347a5ce258ac1a6a6902ce9695ca1.tar.gz |
Implement Ci::NestedUniquenessValidator
Diffstat (limited to 'app/models/ci/pipeline_schedule.rb')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index ad9f8b89924..df9df45edb0 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -15,11 +15,6 @@ module Ci validates :cron_timezone, cron_timezone: true, presence: { unless: :importing? } validates :ref, presence: { unless: :importing? } validates :description, presence: true - validates :variables, uniqueness_of_in_memory: { - :collection => :variables, - :attrs => [:pipeline_schedule_id, :key], - :message => ['variables.key', 'keys are duplicated'] - } before_save :set_next_run_at |