Sha256: 5e76fcee8ef3be30b60424c67167c8202d7fd56d0490c6923182fee224f4612e

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

module Ecom
  class Purchase
    include Mongoid::Document
    include Mongoid::Timestamps
    
    field :user_id, type: String
    field :checked_out_at, type: Time   
    field :total_price, type: Float
    
    has_many :line_items, :dependent => :destroy   

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom-0.1.1 app/models/ecom/purchase.rb