Use transaction for migration?