Permalink
Browse files

add dependency to monitor config

  • Loading branch information...
1 parent 50b7570 commit f9762b2a4ad58c4ae7542a33a203f80d38ccaa9e @peizguo peizguo committed Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/monitor_config.rb
@@ -15,7 +15,7 @@ class MonitorConfig
key :performance_sla, Hash
one :issue
- many :tasks, :class_name => "MonitorConfigTask", :as => :monitor_config
+ many :tasks, :class_name => "MonitorConfigTask", :as => :monitor_config, :dependent => :destroy
def location_frequency
(frequency * locations.count).seconds

0 comments on commit f9762b2

Please sign in to comment.