Sha256: 0c24398e598ce63fe137d7d64d281b2d95ce3259620c94d024b898d8e1863109
Contents?: true
Size: 480 Bytes
Versions: 25
Compression:
Stored size: 480 Bytes
Contents
require 'autoinc' # # Invoice - for wasya.co # _vp_ 20171031 # class Ish::Invoice include Mongoid::Document include Mongoid::Timestamps include Mongoid::Autoinc store_in :collection => 'ish_invoice' field :email, :type => String field :number, :type => Integer increments :number field :amount, :type => Float has_many :payments, :class_name => 'Ish::Payment' field :paid_amount, :type => Float, :default => 0 field :description, :type => String end
Version data entries
25 entries across 25 versions & 1 rubygems