Sha256: c77d008858aafa421fbb9aa974dec15aec95c6d5a676bcb66044a6752a169067

Contents?: true

Size: 351 Bytes

Versions: 17

Compression:

Stored size: 351 Bytes

Contents

class Cow
  include DataMapper::Resource

  property :id,        Integer, :key => true
  property :composite, Integer, :key => true
  property :name,      String
  property :breed,     String

  belongs_to :mother_cow, :model => self, :required => false
  has n, :baby_cows, :model => self, :child_key => [ :mother_cow_id, :mother_cow_composite ]
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ardm-serializer-1.2.2 spec/fixtures/cow.rb
dm-serializer-1.2.2 spec/fixtures/cow.rb
dm-serializer-1.2.1 spec/fixtures/cow.rb
dm-serializer-1.2.0 spec/fixtures/cow.rb
dm-serializer-1.2.0.rc2 spec/fixtures/cow.rb
dm-serializer-1.2.0.rc1 spec/fixtures/cow.rb
dm-serializer-1.1.0 spec/fixtures/cow.rb
dm-serializer-1.1.0.rc3 spec/fixtures/cow.rb
dm-serializer-1.1.0.rc2 spec/fixtures/cow.rb
dm-serializer-1.1.0.rc1 spec/fixtures/cow.rb
dm-serializer-1.0.2 spec/fixtures/cow.rb
dm-serializer-1.0.1 spec/fixtures/cow.rb
dm-serializer-1.0.0 spec/fixtures/cow.rb
dm-serializer-1.0.0.rc3 spec/fixtures/cow.rb
dm-serializer-1.0.0.rc2 spec/fixtures/cow.rb
dm-serializer-1.0.0.rc1 spec/fixtures/cow.rb
dm-serializer-0.10.2 spec/fixtures/cow.rb