Wrappped the migration in a single transaction.