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

th-downstream
Claire 1 year ago committed by GitHub
parent cbcf32777e
commit a5b52eb618

@ -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

Loading…
Cancel
Save