Make ticket layout configurable
Added option for conference organizer to switch between ticket layouts (horizontal or vertical). Added test for the same.
This commit is contained in:
parent
e25de318bd
commit
dd52a9b2ab
10 changed files with 38 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class AddTicketLayoutToConferences < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :ticket_layout, :integer, default: 0
|
||||
end
|
||||
end
|
||||
|
|
@ -105,6 +105,7 @@ ActiveRecord::Schema.define(version: 20170629162450) do
|
|||
t.integer "start_hour", default: 9
|
||||
t.integer "end_hour", default: 20
|
||||
t.integer "organization_id"
|
||||
t.integer "ticket_layout", default: 0
|
||||
end
|
||||
|
||||
add_index "conferences", ["organization_id"], name: "index_conferences_on_organization_id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue