Story #109367018 - remove validation that token domain and token are unique, prevents required action for delete reject

This commit is contained in:
Matt Farnsworth 2015-12-17 19:55:09 +02:00
parent cfcbef915d
commit da410aaa1f

View file

@ -12,7 +12,6 @@ class RegistrantVerification < ActiveRecord::Base
belongs_to :domain
validates :verification_token, :domain_name, :domain, :action, :action_type, presence: true
validates :domain, uniqueness: { scope: [:domain_id, :verification_token] }
def domain_registrant_change_confirm!
self.action_type = DOMAIN_REGISTRANT_CHANGE