aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/organisation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb
index aa67564..89ad982 100644
--- a/app/models/organisation.rb
+++ b/app/models/organisation.rb
@@ -1,3 +1,3 @@
class Organisation < ApplicationRecord
- has_many :events
+ has_many :events, dependent: :destroy
end