summaryrefslogtreecommitdiff
path: root/app/models/user_canonical_email.rb
blob: 044e4fd775e270837e5137c68b35dca460d262ba (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class UserCanonicalEmail < ApplicationRecord
  validates :canonical_email, presence: true
  validates :canonical_email, format: { with: Devise.email_regexp }

  belongs_to :user, inverse_of: :user_canonical_email
end