Hacker News new | ask | show | jobs
by gcampbell 5579 days ago
DataMapper's dm-constraints plugin (https://github.com/datamapper/dm-constraints) can automatically add foreign key constraints to your associations, which has the side effect (in MySQL at least) of creating indices on the foreign key columns if they don't already exist.