From a5b52eb61885697bb9df6fcebb4ddb6479fc31cb Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 23 May 2023 15:00:36 +0200 Subject: [PATCH] Change Identity to not destroy associated User on destroy (#25098) --- app/models/identity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/identity.rb b/app/models/identity.rb index 6f10fed4d7..c95a68a6f6 100644 --- a/app/models/identity.rb +++ b/app/models/identity.rb @@ -13,7 +13,7 @@ # class Identity < ApplicationRecord - belongs_to :user, dependent: :destroy + belongs_to :user validates :uid, presence: true, uniqueness: { scope: :provider } validates :provider, presence: true