Install foreigner gem
Install immigrant gem
Add foreign key constraints

- rails g immigration AddForeignKeys
- manually edited the migration file to add 
  'dependent: :delete' to certain foreign keys where 
   appropriate
- rake db:migrate