module EducodeSales class Invoice < ApplicationRecord belongs_to :invoice_apply, counter_cache: true end end