It is a part of ruby-datamapper 1.1.0. Changes in detail, please refer: http://datamapper.org/articles/datamapper-110-released.html.
Plugin that adds foreign key constraints to associations. Currently supports only PostgreSQL and MySQL. All constraints are added to the underlying database, but constraining is implemented in pure ruby.