diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-22 21:57:13 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:36:18 +0300 |
commit | 58d8b9ae62813cb69821a4e0e41c914aee7e323a (patch) | |
tree | 1e6f4a9d3b911679e5236d48554b4e6b95ef8ed8 /app/models/ci/pipeline_schedule_variable.rb | |
parent | d278da48f837292491aaf81649afef1da3a1eb09 (diff) |
Controller logic. Delete before modification. Halfway.
Diffstat (limited to 'app/models/ci/pipeline_schedule_variable.rb')
-rw-r--r-- | app/models/ci/pipeline_schedule_variable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_schedule_variable.rb b/app/models/ci/pipeline_schedule_variable.rb index 2d681446d00..ee5b8733fac 100644 --- a/app/models/ci/pipeline_schedule_variable.rb +++ b/app/models/ci/pipeline_schedule_variable.rb @@ -4,6 +4,7 @@ module Ci include HasVariable belongs_to :pipeline_schedule + validates :key, uniqueness: { scope: :pipeline_schedule_id } end end |