module EducodeSales class FollowUp < ApplicationRecord belongs_to :business, counter_cache: true belongs_to :place, optional: true has_many :money_plans, dependent: :destroy has_many :key_person has_many :teachers, through: :key_person belongs_to :staff belongs_to :stage, class_name: 'Common' belongs_to :clazz, class_name: 'Common' end end