Sha256: da73caad9666a00d2bbd321d71756474ab34a7ec0269b0b5032fe45dba48c506

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

class Fruit #< DataMapper::Base
  include DataMapper::Persistence
  
  set_table_name 'fruit'
  property :name, :string, :column => 'fruit_name'
  
  belongs_to :devourer_of_souls, :class => 'Animal', :foreign_key => 'devourer_id'
end

Version data entries

1 entries across 1 versions & 1 rubygems

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