Sha256: e026566f670fc76714c53c7854c406493db121053643dd3642950f0a914b3d3a

Contents?: true

Size: 321 Bytes

Versions: 16

Compression:

Stored size: 321 Bytes

Contents

require 'client'
require 'sale_entry'

class SaleInvoice < CouchRest::Model::Base
  use_database DB

  belongs_to :client
  belongs_to :alternate_client, :class_name => 'Client', :foreign_key => 'alt_client_id'

  collection_of :entries, :class_name => 'SaleEntry'

  property :date, Date
  property :price, Integer 
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
couchrest_model-2.2.0.beta2 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.2.0.beta1 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.1.0.rc1 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.1.0.beta2 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.1.0.beta1 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.4 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.3 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.1 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.0 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.0.beta2 spec/fixtures/models/sale_invoice.rb
couchrest_model-2.0.0.beta spec/fixtures/models/sale_invoice.rb
couchrest_model-1.2.0.beta spec/fixtures/models/sale_invoice.rb
openlogic-couchrest_model-1.0.0 spec/fixtures/models/sale_invoice.rb
couchrest_model-1.1.2 spec/fixtures/models/sale_invoice.rb
couchrest_model-1.1.1 spec/fixtures/models/sale_invoice.rb
couchrest_model-1.1.0 spec/fixtures/models/sale_invoice.rb