diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-21 12:25:01 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:36:18 +0300 |
commit | d278da48f837292491aaf81649afef1da3a1eb09 (patch) | |
tree | 3af83b99d6e6c2b503d1a73f0ac61604edf375ee /app/models/ci/pipeline_schedule.rb | |
parent | 5af1fcd6f329858d757bab0d67cb50af6c820160 (diff) |
pipeline_schedule_variables model/db
Diffstat (limited to 'app/models/ci/pipeline_schedule.rb')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index 45d8cd34359..31b73248947 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -9,6 +9,7 @@ module Ci belongs_to :owner, class_name: 'User' has_one :last_pipeline, -> { order(id: :desc) }, class_name: 'Ci::Pipeline' has_many :pipelines + has_many :variables, class_name: 'Ci::PipelineScheduleVariable' validates :cron, unless: :importing?, cron: true, presence: { unless: :importing? } validates :cron_timezone, cron_timezone: true, presence: { unless: :importing? } |