aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index aaa4e6e..27f9aec 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -2,7 +2,7 @@ class Event < ApplicationRecord
validates :name, presence: true, length: { maximum: 50 }
validates :date, presence: true
- belongs_to :organisation, optional: true
+ belongs_to :operation, optional: true
def month_year_check(year, month)
if self.date.year == year && self.date.month == month