Sha256: 63f00a881f48f27c6a48639df83b28bb3d7d9dad292f562097aaf53788ab35e4
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
educode_sales-0.8.2 | app/models/educode_sales/follow_up.rb |
educode_sales-0.8.1 | app/models/educode_sales/follow_up.rb |
educode_sales-0.7.9 | app/models/educode_sales/follow_up.rb |