Support of foreign_key db constrains was added with using foreigner gem:
   index name, :foreign=>true
The foreign keys are automatically added and deleted.
The gem file temporary point out to the fixed, compatible with mini_record fork of foreigner.