diff --git a/app/models/guest.rb b/app/models/guest.rb index f729f4c..40c41be 100644 --- a/app/models/guest.rb +++ b/app/models/guest.rb @@ -36,6 +36,7 @@ class Guest < ApplicationRecord scope :potential, -> { where.not(status: %i[declined considered]) } after_save :recalculate_simulations, if: :saved_change_to_status? + after_destroy :recalculate_simulations has_many :seats, dependent: :delete_all