unité de rails
validates :email, uniqueness: true
Lioruby
validates :email, uniqueness: true
class Person < ApplicationRecord
validates :name, presence: true
end