This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
grindable/app/models/ledger.rb

7 lines
158 B
Ruby

class Ledger < ActiveRecord::Base
belongs_to :barista
belongs_to :fund
validates_numericality_of :debit_amount, :credit_amount, :allow_nil => true
end