Finishes the migration