Fixes bug where User model update fails on migration.