Skip to content

Commit

Permalink
Change Identity to not destroy associated User on destroy (mastodon#2…
Browse files Browse the repository at this point in the history
…5098)

(cherry picked from commit b1ac356)
  • Loading branch information
ClearlyClaire authored and F-Finene committed Jul 6, 2023
1 parent e855571 commit 3edb597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/identity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3edb597

Please sign in to comment.