DataMapper 0.2.5 Release

S

Sam Smoot

Notes:
Bug-fix release.

Some minor API changes and enhancements (MyModel#[] only accepts a
primary key now, not an options hash).

database.get (equiv to AR's find_by_id) is approximately 25% faster
than previous.

No longer must you inherit from DataMapper::Base. Instead now you can
include the DataMapper::persistence module in your models :):Base is
preserved for backwards compatibility).


Changes:
-- 0.2.5
* has_one bugfixes
* Added syntax for setting CHECK-constraints directly in your
properties (Postgres)
* You can now set indexes with :index => true and :index => :unique
* Support for composite indexes (thanks to Jeffrey Gelens)
* Add composite scope to validates_uniqueness
* Added private/protected properties
* Remove HasOneAssociation, Make HasManyAssociation impersonate
has_one relationships
* Added #get method
* Persistence module added, inheriting from DataMapper::Base no longer
necessary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top