Automatic Foreign Key automatically generates foreign-key constraints when creating tables or adding columns. It uses SQL-92 syntax and as such should be compatible with most databases that support foreign-key constraints.
Michał Łomnicki, Paco Guzmán
gem "aspgems-foreign_key_migrations", "~> 2.0.0.beta1"