DataMapper 0.9 is ready for the world. It brings with it a massive overhaul of
the internals of DataMapper, a shift in terminology, a dramatic bump in speed,
improved code-base organization, and support for more than just database
data-stores.
This is NOT a backwards compatible release. Code written for DataMapper 0.3 will
not function with DataMapper 0.9.* due to syntactical changes and library
improvements.
REPEAT: This is NOT a backwards compatible release.
DataMapper 0.3
DataMapper 0.9
Creating a class
classPost<DataMapper::Baseend
classPostincludeDataMapper::Resourceend
Keys
# Key was not mandatory# Automatically added +id+ if missing## Natural Keyproperty:name,:string,:key=>true## Composite Keyproperty:id,:integer,:key=>trueproperty:slug,:string,:key=>true
# keys are now mandatoryproperty:id,Serial## Natural Keyproperty:slug,String,:key=>true## Composite Keyproperty:id,Integer,:key=>trueproperty:slug,String,:key=>true