delete reaction notifications when deleting status

main
fef 2 years ago
parent e0637a3c1d
commit 4b6e75512f
No known key found for this signature in database
GPG Key ID: EC22E476DC2D3D84

@ -16,6 +16,8 @@ class StatusReaction < ApplicationRecord
belongs_to :status, inverse_of: :status_reactions
belongs_to :custom_emoji, optional: true
has_one :notification, as: :activity, dependent: :destroy
validates :name, presence: true
validates_with StatusReactionValidator

Loading…
Cancel
Save