Merge branch 'master' into refactor-contact-archivation

This commit is contained in:
Karl Erik Õunapuu 2020-09-03 14:43:25 +03:00 committed by GitHub
commit b2dab0d316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 253 additions and 36 deletions

View file

@ -22,8 +22,6 @@ class Contact < ApplicationRecord
alias_attribute :kind, :ident_type
alias_attribute :copy_from_id, :original_id # Old attribute name; for PaperTrail
accepts_nested_attributes_for :legal_documents
scope :email_verification_failed, lambda {
joins('LEFT JOIN email_address_verifications emv ON contacts.email = emv.email')
.where('success = false and verified_at IS NOT NULL')