benchmarks/to_json.rb in dm-serializer-0.10.1 vs benchmarks/to_json.rb in dm-serializer-0.10.2
- old
+ new
@@ -1,10 +1,10 @@
require "rubygems"
require 'pathname'
require 'better-benchmark'
-gem 'dm-core', '0.10.1'
+gem 'dm-core', '0.10.2'
require 'dm-core'
spec_dir_path = Pathname(__FILE__).dirname.expand_path
$LOAD_PATH.unshift(spec_dir_path.parent + 'lib/')
require 'dm-serializer'
@@ -80,10 +80,10 @@
property :composite, Integer, :key => true
property :name, String
property :breed, String
has n, :baby_cows, :model => 'Cow'
- belongs_to :mother_cow, :model => 'Cow', :nullable => true
+ belongs_to :mother_cow, :model => 'Cow', :required => false
end
DataMapper.auto_migrate!
cow = Cow.create(
:id => 89,