diff options
Diffstat (limited to 'app/models/unavailable_domain.rb')
-rw-r--r-- | app/models/unavailable_domain.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/unavailable_domain.rb b/app/models/unavailable_domain.rb index e2918b586..5e8870bde 100644 --- a/app/models/unavailable_domain.rb +++ b/app/models/unavailable_domain.rb @@ -12,6 +12,8 @@ class UnavailableDomain < ApplicationRecord include DomainNormalizable + validates :domain, presence: true, uniqueness: true + after_commit :reset_cache! private |