mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #2441 from ibrahimelbanna/Fix/Add_validation_timezone
Adding time zone validation to conference model
This commit is contained in:
commit
37d671fd3e
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