From ea14fbd09129a0a0aeb5bf565d2f0cfaaa87562c 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 8cc65aef413d13..869f06372dab8b 100644 --- a/app/models/identity.rb +++ b/app/models/identity.rb @@ -12,7 +12,7 @@ # class Identity < ApplicationRecord - belongs_to :user, dependent: :destroy + belongs_to :user validates :uid, presence: true, uniqueness: { scope: :provider } validates :provider, presence: true