From b96116401d298665f5dace175f640471ea382c32 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 15 Mar 2023 14:57:26 +0900 Subject: [PATCH] Track is not mandatory --- app/models/program_session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/program_session.rb b/app/models/program_session.rb index 0663e0a93..3f0056973 100644 --- a/app/models/program_session.rb +++ b/app/models/program_session.rb @@ -37,7 +37,7 @@ class ProgramSession < ApplicationRecord belongs_to :event belongs_to :proposal - belongs_to :track + belongs_to :track, optional: true belongs_to :session_format has_one :time_slot, dependent: :nullify has_many :speakers, -> { order(:created_at)}