summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-06-27 16:24:51 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:38:25 +0900
commitcfd5caa5e7d546436b82d94468defc0638270435 (patch)
tree1d69e0806440eeebe04d61412c984732bfca99e3 /app/models
parentc5e16d524ace247578ce77c423dc6ad8b20df5cc (diff)
downloadgitlab-ce-cfd5caa5e7d546436b82d94468defc0638270435.tar.gz
Remove dependent => :destroy
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/pipeline_schedule.rb2
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? }