diff --git a/app/models/customer.rb b/app/models/customer.rb index 2bbe41c..d09ce9e 100755 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -22,7 +22,7 @@ class Customer < ActiveRecord::Base has_many :domains, :through => :domain_customers has_many :domain_customers, :dependent => :destroy - has_many :reseaux_customers + has_many :reseaux_customers, :dependent => :destroy has_many :reseauxes, :through => :reseaux_customers has_many :own_reseauxes, :class_name => "Reseaux", :foreign_key => :chef_reseau_id