destroy the identities associated with an user when the user deletes his account
This commit is contained in:
@@ -154,6 +154,7 @@ class User < ActiveRecord::Base
|
|||||||
confirmed_phone: nil,
|
confirmed_phone: nil,
|
||||||
unconfirmed_phone: nil
|
unconfirmed_phone: nil
|
||||||
)
|
)
|
||||||
|
self.identities.destroy_all
|
||||||
end
|
end
|
||||||
|
|
||||||
def erased?
|
def erased?
|
||||||
|
|||||||
Reference in New Issue
Block a user