Prepare the migration file