class CreditPayment < ActiveRecord::Base belongs_to :customer belongs_to :pointsale belongs_to :user has_one :cash_registers_move has_and_belongs_to_many :credits enum status: [ :active, :cancelled ] end