Sha256: e2e76afb24b2f88c2922c0d3e51af8f862353408f0dfc983caf290c7df490b14
Contents?: true
Size: 808 Bytes
Versions: 6
Compression:
Stored size: 808 Bytes
Contents
class Zoo include DataMapper::Resource property :id, Serial property :name, String property :description, Text property :inception, DateTime property :open, Boolean, :default => false property :size, Integer has n, :animals def to_s name end end class Species include DataMapper::Resource property :id, Serial property :name, String property :classification, String, :reader => :private has n, :animals end class Animal include DataMapper::Resource property :id, Serial property :name, String belongs_to :zoo belongs_to :species belongs_to :keeper end class Employee include DataMapper::Resource property :name, String, :key => true end class Keeper < Employee has n, :animals end
Version data entries
6 entries across 6 versions & 3 rubygems