From e6b16ed1ae18fce35d87cf4f27c3807d0644ff70 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 28 Apr 2019 02:42:09 +0300 Subject: [PATCH] The event is not required for the existence of a slot --- app/models/slot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/slot.rb b/app/models/slot.rb index bb5509c..06bcf33 100644 --- a/app/models/slot.rb +++ b/app/models/slot.rb @@ -1,4 +1,4 @@ class Slot < ActiveRecord::Base belongs_to :hall - belongs_to :event + belongs_to :event, required: false end