delete reaction notifications when deleting status

main
anna 1 year ago
parent e48cad81d2
commit 3b511a3290
Signed by: fef
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