From dc77795f955342dc3f8569490dd34654d39aa97a Mon Sep 17 00:00:00 2001 From: ibrahimelbanna Date: Sun, 17 Mar 2019 00:03:42 +0200 Subject: [PATCH] Adding time zone validation to conference model --- app/models/conference.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 94484425..89ca5d19 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -80,7 +80,8 @@ class Conference < ApplicationRecord :start_hour, :end_hour, :ticket_layout, - :organization, presence: true + :organization, + :timezone, presence: true validates :short_title, uniqueness: true validates :short_title, format: { with: /\A[a-zA-Z0-9_-]*\z/ }