do migration in transaction