Added token field in physical_ticket model. This token will also be stored in the qr code and will uniqely identify the ticket.
6 lines
185 B
Ruby
6 lines
185 B
Ruby
class AddIndexToPhysicalTickets < ActiveRecord::Migration
|
|
def change
|
|
add_column :physical_tickets, :token, :string
|
|
add_index :physical_tickets, :token, unique: true
|
|
end
|
|
end
|