app/models/educode_sales/activity.rb in educode_sales-0.9.67 vs app/models/educode_sales/activity.rb in educode_sales-0.9.68
- old
+ new
@@ -9,9 +9,13 @@
has_many :invitations , -> {where("educode_sales_activity_staffs.clazz_id = 3")}, dependent: :destroy, class_name: 'ActivityStaff'
has_many :activity_staffs, dependent: :destroy
has_many :activity_follow_ups, dependent: :destroy
+ has_many :attachments, as: :container, dependent: :destroy
+
+ belongs_to :last_follow_up, class_name: 'ActivityFollowUp', optional: true
+
belongs_to :sales, class_name: 'Staff', optional: true
has_one :attachment, as: :container, dependent: :destroy
enum clazz_id: ['全国会议', '区域会议', '单校会议', '国赛', '省赛', '夏令营']