Fix bug in migration (rank type in places : interger->integer)

Review. Did I miss something else ?