Make ticket layout configurable

This commit is contained in:
siddhantbajaj 2017-06-30 05:26:21 +05:30
parent f37d3095e1
commit a21d95c486
7 changed files with 19 additions and 1 deletions

View file

@ -57,6 +57,7 @@ class Conference < ActiveRecord::Base
:end_date,
:start_hour,
:end_hour,
:ticket_layout,
:organization, presence: true
validates :short_title, uniqueness: true
@ -73,6 +74,11 @@ class Conference < ActiveRecord::Base
after_create :create_free_ticket
after_update :delete_event_schedules
enum ticket_layout: {
vertical: 0,
horizontal: 1
}
##
# Checks if the user is registered to the conference
#