about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-11-25 20:21:25 +0100
committerGitHub <noreply@github.com>2021-11-25 20:21:25 +0100
commit8c2fe2a846dd14914f7faa4bf71be21058249a93 (patch)
tree4358056c2b702a1bf9cc4d18e558f53e9e8a65c9 /app
parent3ba7c85ec9bd5dcf75b30b00ed634b3b31a029af (diff)
parent534b0a270422f33b6f8b0a8e9246eb34416cfb3b (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.rb2
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)