Fix migrations to work properly with AUTH_USER_MODEL