module EducodeSales class SalesDetail < ApplicationRecord belongs_to :business belongs_to :product_catalog belongs_to :staff enum custom_clazz: ['非定制', '低定制', '高定制', '全定制'] end end