Run data migrations inside transactions