Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add dependency to monitor config

  • Loading branch information...
commit f9762b2a4ad58c4ae7542a33a203f80d38ccaa9e 1 parent 50b7570
Peizong Guo authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  app/models/monitor_config.rb
2  app/models/monitor_config.rb
@@ -15,7 +15,7 @@ class MonitorConfig
15 15
   key :performance_sla,  Hash
16 16
 
17 17
   one :issue
18  
-  many :tasks, :class_name => "MonitorConfigTask", :as => :monitor_config
  18
+  many :tasks, :class_name => "MonitorConfigTask", :as => :monitor_config, :dependent => :destroy
19 19
 
20 20
   def location_frequency
21 21
     (frequency * locations.count).seconds

0 notes on commit f9762b2

Please sign in to comment.
Something went wrong with that request. Please try again.