lib/notifiable/notification.rb in notifiable-rails-0.7.1 vs lib/notifiable/notification.rb in notifiable-rails-0.7.2
- old
+ new
@@ -1,8 +1,8 @@
module Notifiable
class Notification < ActiveRecord::Base
serialize :params
- has_many :notification_statuses, :class_name => 'Notifiable::NotificationStatus'
+ has_many :notification_statuses, :class_name => 'Notifiable::NotificationStatus', :dependent => :destroy
end
end
\ No newline at end of file