app/models/educode_sales/activity.rb in educode_sales-0.9.60 vs app/models/educode_sales/activity.rb in educode_sales-0.9.61

- old
+ new

@@ -6,8 +6,10 @@ has_many :manages, -> {where("educode_sales_activity_staffs.clazz_id = 0")}, dependent: :destroy, class_name: 'ActivityStaff' has_many :assists, -> {where("educode_sales_activity_staffs.clazz_id = 1")}, dependent: :destroy, class_name: 'ActivityStaff' has_many :experts , -> {where("educode_sales_activity_staffs.clazz_id = 2")}, dependent: :destroy, class_name: 'ActivityStaff' has_many :activity_staffs + has_one :attachment, as: :container, dependent: :destroy + enum clazz_id: ['全国会议', '区域会议', '单校会议', '国赛', '省赛', '夏令营'] end end