Sha256: 00f5946ee38b922bd4cce7f4ad018486ba8540e52283088643a0055ecdbeb8f9

Contents?: true

Size: 202 Bytes

Versions: 4

Compression:

Stored size: 202 Bytes

Contents

class Animal < DataMapper::Base
  property :name, :string
  property :notes, :text
  
  has_one :favourite_fruit, :class => 'Fruit', :foreign_key => 'devourer_id'
  has_and_belongs_to_many :exhibits
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datamapper-0.2.0 spec/models/animal.rb
datamapper-0.2.1 spec/models/animal.rb
datamapper-0.2.2 spec/models/animal.rb
datamapper-0.2.3 spec/models/animal.rb