app/models/educode_sales/activity.rb in educode_sales-0.1.1 vs app/models/educode_sales/activity.rb in educode_sales-0.1.2

- old
+ new

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