Sha256: 8a41e43fa6fe33bb540f97fbe8c6aef024e3d2130ab606fa9f8b60f493485b50
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
class Fruit include DataMapper::Resource property :id, Serial property :species, String property :average_diameter, Integer belongs_to :tree, :required => false, :default => nil end class Tree include DataMapper::Resource property :id, Serial property :name, String property :size, String, :writer => :private has n, :fruits end DataMapper::Model.raise_on_save_failure = true require 'dm-transactions' require 'dm-migrations' DataMapper::Logger.new(@logger_file, :debug) DataMapper.setup(:default, 'mysql://localhost/blueprints_test') DataMapper.finalize DataMapper.auto_migrate! @transactions = true
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blueprints-1.0.1 | spec/support/dm-core/initializer.rb |
blueprints-1.0.0 | spec/support/dm-core/initializer.rb |
blueprints-0.9.0 | spec/support/dm-core/initializer.rb |