```ruby
class User < ActiveRecord::Base
include ActiveModel::Validations
	validates :name, :city, :email, presence: true
end
```

Add uniqueness validation for email on create & update
user
```ruby
class User < ActiveRecord::Base
include ActiveModel::Validations
	validates :name, :city, :email, presence: true
	validates :email, uniqueness: { case_sensitive: false }, on: :create
	validates :email, uniqueness: { case_sensitive: false }, on: :update
end
```
assistant