diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-25 20:21:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 20:21:25 +0100 |
commit | 8c2fe2a846dd14914f7faa4bf71be21058249a93 (patch) | |
tree | 4358056c2b702a1bf9cc4d18e558f53e9e8a65c9 /app | |
parent | 3ba7c85ec9bd5dcf75b30b00ed634b3b31a029af (diff) | |
parent | 534b0a270422f33b6f8b0a8e9246eb34416cfb3b (diff) |
Merge pull request #1635 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app')
-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) |