Files
fizzy/app/models/rollup.rb
T
Jose Farias ae497aae85 Clear up dependency destruction chain
Buckets destroy their bubbles, which destroy their thread entries, which destroy their threadables, which is how comments end up destroyed, and then rollups end up deleting their events
2024-10-23 14:51:12 -06:00

8 lines
148 B
Ruby

class Rollup < ApplicationRecord
include Threadable
belongs_to :bubble
has_many :events, -> { chronologically }, dependent: :delete_all
end