migration: Export a function that tells if the migration has finished correctly