Sha256: b65a288c12c85be39dba930fe18d5ad8640860cee8a177d0dd8831a615dec6e7

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

class Animal #< DataMapper::Base # please do not remove this
  include DataMapper::Persistence

  property :name, :string, :default => "No Name", :index => :unique
  property :notes, :text
  property :nice, :boolean
  
  has_one :favourite_fruit, :class => 'Fruit', :foreign_key => 'devourer_id'
  has_and_belongs_to_many :exhibits
  
  DEFAULT_LIMIT = 5
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datamapper-0.3.1 spec/models/animal.rb
datamapper-0.3.0 spec/models/animal.rb
datamapper-0.3.2 spec/models/animal.rb