Change Identity to not destroy associated User on destroy (#25098)

This commit is contained in:
Claire committed 2023-07-06 13:45:40 +02:00
1 parent 4c6c790f80
commit b1ac3562df
1 file changed
+1 -1
+1 -1
View File
@@ -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