Add transaction boundaries to migrations.