Identify database issues before they hit production.
Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb
Foreign key migration generator for Rails
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.