Stop uniqueness validations failing on persisted documents