app/models/educode_sales/business.rb in educode_sales-0.9.77 vs app/models/educode_sales/business.rb in educode_sales-0.9.78

- old
+ new

@@ -17,10 +17,10 @@ has_many :business_clazz_changes has_many :business_levels, dependent: :destroy has_many :business_watches, dependent: :destroy has_many :business_histories, dependent: :destroy - has_many :assign_staffs, as: :sourcable # 售后人员 + has_many :assign_staffs, as: :sourcable, dependent: :destroy # 售后人员 # 关联关注 has_many :users, :class_name => 'EducodeSales::BusinessRelationShip', foreign_key: 'business_id', :dependent => :destroy # 每次查询时 默认的查询条件