Bubble events can be deleted

This commit is contained in:
Jose Farias
2024-10-24 18:01:32 -06:00
parent b16d2ed2d8
commit f5b01415aa
+1 -1
View File
@@ -2,7 +2,7 @@ module Bubble::Eventable
extend ActiveSupport::Concern
included do
has_many :events, dependent: :destroy
has_many :events, dependent: :delete_all
after_create -> { track_event :created }
end