delete reaction notifications when deleting status

This commit is contained in:
anna 2022-12-07 12:47:03 +00:00
parent 1cb9c9dcca
commit 6e5fc00fff
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

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