diff --git a/app/models/panel.rb b/app/models/panel.rb index e3760deb..17ad3183 100644 --- a/app/models/panel.rb +++ b/app/models/panel.rb @@ -10,7 +10,8 @@ class Panel < ApplicationRecord message: 'is required if start is provided.' validates_datetime :start_datetime, before: :end_datetime, - if: -> { start_datetime? || end_datetime? } + if: -> { start_datetime? || end_datetime? }, + before_message: 'must be before End Date/Time' validates_uniqueness_of :grant validates :meeting_link, if: -> { meeting_link? },