foreign_key was renamed to primary_key?

That does not make sense