Sha256: af7c5d9a99b35e1b778f971f845031f6ca4e7390119f872c25dc8371c5d4e97b

Contents?: true

Size: 459 Bytes

Versions: 35

Compression:

Stored size: 459 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'

  belongs_to :profile, :class_name => 'IshModels::UserProfile'

  field :number, :type => Integer
  increments :number

  field :amount, :type => Float

  has_many :payments, :class_name => 'Ish::Payment'

  field :description, :type => String

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ish_models-0.0.33.68 lib/ish/invoice.rb
ish_models-0.0.33.67 lib/ish/invoice.rb
ish_models-0.0.33.66 lib/ish/invoice.rb
ish_models-0.0.33.65 lib/ish/invoice.rb
ish_models-0.0.33.64 lib/ish/invoice.rb
ish_models-0.0.33.63 lib/ish/invoice.rb
ish_models-0.0.33.62 lib/ish/invoice.rb
ish_models-0.0.33.61 lib/ish/invoice.rb
ish_models-0.0.33.60 lib/ish/invoice.rb
ish_models-0.0.33.59 lib/ish/invoice.rb
ish_models-0.0.33.58 lib/ish/invoice.rb
ish_models-0.0.33.57 lib/ish/invoice.rb
ish_models-0.0.33.56 lib/ish/invoice.rb
ish_models-0.0.33.55 lib/ish/invoice.rb
ish_models-0.0.33.54 lib/ish/invoice.rb
ish_models-0.0.33.53 lib/ish/invoice.rb
ish_models-0.0.33.52 lib/ish/invoice.rb
ish_models-0.0.33.50 lib/ish/invoice.rb
ish_models-0.0.33.49 lib/ish/invoice.rb
ish_models-0.0.33.48 lib/ish/invoice.rb