Sha256: 7c68215c79f514695a1114ca2b433dacd32bc98570698cf37a0f6e35db6e31d1
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
module EducodeSales class FollowUp < ApplicationRecord include ::Deletable belongs_to :business, counter_cache: true # counter_cache(自动计算 business对应follow_up表中对应的个数) belongs_to :place, optional: true has_many :money_plans has_many :key_person has_many :teachers, through: :key_person has_many :assign_follow_ups belongs_to :staff belongs_to :stage, class_name: 'Common' belongs_to :clazz, class_name: 'Common' default_scope -> {where(deleted_at: nil)} end end
Version data entries
4 entries across 4 versions & 1 rubygems