Foreign Keys migration

Pushing it to master.. Basically fixed https://github.com/Katello/katello/pull/3390