purchase_detail.rb 128 B

123456
  1. class PurchaseDetail < ActiveRecord::Base
  2. belongs_to :purchase
  3. belongs_to :product
  4. enum status: [ :inactive, :active ]
  5. end