rake task to list unidexed foreign keys

rake db:not_indexed_fks
contract init (model + tests)
rails best practice init + fixes