module EducodeSales class Business < ApplicationRecord belongs_to :staff belongs_to :department belongs_to :last_follow_up, class_name: 'FollowUp', optional: true has_many :sale_plans, dependent: :destroy has_many :follow_ups, dependent: :destroy end end