gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/stable
Claire 2023-05-23 15:00:36 +02:00
parent 4c6c790f80
commit b1ac3562df
1 changed files with 1 additions and 1 deletions

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