Skip to content

Commit b961164

Browse files
committed
Track is not mandatory
1 parent 29e0cf8 commit b961164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/program_session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ProgramSession < ApplicationRecord
3737

3838
belongs_to :event
3939
belongs_to :proposal
40-
belongs_to :track
40+
belongs_to :track, optional: true
4141
belongs_to :session_format
4242
has_one :time_slot, dependent: :nullify
4343
has_many :speakers, -> { order(:created_at)}

0 commit comments

Comments
 (0)