fixed User model in migrations

fixes #349