Adding time zone validations

This commit is contained in:
ibrahimelbanna 2019-03-16 19:25:48 +02:00
parent 1544cdd23e
commit 851c627b94

View file

@ -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/ }