Nullify contact's uuid when transferring

It will be generated on DB level
This commit is contained in:
Artur Beljajev 2018-06-13 10:35:18 +03:00
parent fc3c70c5ee
commit bf53ca5947

View file

@ -16,6 +16,7 @@ module Concerns::Contact::Transferable
new_contact.regenerate_code
new_contact.regenerate_auth_info
new_contact.remove_address unless self.class.address_processing?
new_contact.uuid = nil
new_contact.save(validate: false)
new_contact
end