Sha256: 122d5e1803582584a43b2dbb941a7070b1b74d7918b9b77154c46053a7411c93

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

class Animal #< DataMapper::Base
  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

1 entries across 1 versions & 1 rubygems

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