Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb