app/models/educode_sales/activity.rb in educode_sales-0.2.0 vs app/models/educode_sales/activity.rb in educode_sales-0.2.1

- old
+ new

@@ -1,7 +1,7 @@ module EducodeSales class Activity < ApplicationRecord belongs_to :staff - has_many :activity_teachers + has_many :activity_teachers, dependent: :destroy has_many :teachers, through: :activity_teachers, dependent: :restrict_with_exception end end