changes .references to .integer in migrations