Finalize migration script