mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adding time zone validation to conference model
This commit is contained in:
parent
edc5a5b4aa
commit
dc77795f95
1 changed files with 2 additions and 1 deletions
|
|
@ -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/ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue