Sha256: 81efda1612f818227c3d27e94cbc9d44e83afc6283f559a495fe6291c898ea3d

Contents?: true

Size: 196 Bytes

Versions: 7

Compression:

Stored size: 196 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
datamapper-0.2.0 spec/models/fruit.rb
datamapper-0.1.0 spec/models/fruit.rb
datamapper-0.1.1 spec/models/fruit.rb
datamapper-0.2.1 spec/models/fruit.rb
datamapper-0.2.2 spec/models/fruit.rb
datamapper-0.2.3 spec/models/fruit.rb
datamapper-0.2.4 spec/models/fruit.rb