diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-27 10:24:51 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:36:18 +0300 |
commit | a7c4673eb7e67202816e00d76148559d45441184 (patch) | |
tree | f03d5055d74c20503dcb7f23065d1ecce8a9714b /app/models/ci | |
parent | ba63dcbfc6b2638cfd044cf3abf85af2e2804bf0 (diff) |
Remove dependent => :destroy
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index 06b2b981252..440d9717fc8 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -9,7 +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, :dependent => :destroy, class_name: 'Ci::PipelineScheduleVariable' + 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? } |