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
  • Loading branch information
ClearlyClaire committed Jun 21, 2023
1 parent f386bc1 commit ea14fbd
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 ea14fbd

Please sign in to comment.