diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-25 18:42:18 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-11-25 18:42:18 +0100 |
commit | 534b0a270422f33b6f8b0a8e9246eb34416cfb3b (patch) | |
tree | 4358056c2b702a1bf9cc4d18e558f53e9e8a65c9 /app/models | |
parent | 3ba7c85ec9bd5dcf75b30b00ed634b3b31a029af (diff) | |
parent | 46e62fc4b33f3566eb9bf588b15bac28cae967a3 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/canonical_email_block.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/canonical_email_block.rb b/app/models/canonical_email_block.rb index a8546d65a..be8c45bfe 100644 --- a/app/models/canonical_email_block.rb +++ b/app/models/canonical_email_block.rb @@ -15,7 +15,7 @@ class CanonicalEmailBlock < ApplicationRecord belongs_to :reference_account, class_name: 'Account' - validates :canonical_email_hash, presence: true + validates :canonical_email_hash, presence: true, uniqueness: true def email=(email) self.canonical_email_hash = email_to_canonical_email_hash(email) |