Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_canonical_email.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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