Sha256: bead9283ee36e2f1671aacd558ff1e888ace9acfe7c6010f879599a2bbd03ca3

Contents?: true

Size: 176 Bytes

Versions: 1

Compression:

Stored size: 176 Bytes

Contents

class Pet
  include Mongoid::Document
  field :name
  field :weight, :type => Float, :default => 0.0
  embed_many :vet_visits
  embedded_in :pet_owner, :inverse_of => :pet
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-2.0.0.alpha spec/models/pet.rb