How to specify FKs on association in DataMapper 0.9 novemberain.com
Specifying foreign keys on associations in DataMapper 0.9 explicitly may be tricky from ActiveRecord user perspective. Here is how you do it, and some reasons behind this difference.
