Sha256: b7159af4eee62220fe2120a1b8ed10d5489906dd359de808bfc7c5b60912fe16

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

class Animal < DataMapper::Base
  property :name, :string, :default => "No Name"
  property :notes, :text
  property :nice, :boolean
  
  has_one :favourite_fruit, :class => 'Fruit', :foreign_key => 'devourer_id'
  has_and_belongs_to_many :exhibits
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datamapper-0.2.4 spec/models/animal.rb