From 56b8b11ff2b673005ad2044672f2eb215a905bba Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 18 Dec 2023 20:06:01 +0000 Subject: Fixed the problem with the select method... --- app/models/organisation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/organisation.rb') 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 -- cgit v1.2.3