From 6b1a1834ad1715145f047790c8391b8a5558bece Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 20:34:25 +0000 Subject: Created new Operation model and fixed Event associations with it --- 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 4177c35..cda399f 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -1,5 +1,5 @@ class Organisation < ApplicationRecord - has_many :events, dependent: :destroy + has_many :operations, dependent: :destroy validates :name, presence: true, length: { maximum: 25 } end -- cgit v1.2.3