osem-fcy/db/migrate/20170721001700_add_index_to_physical_tickets.rb

7 lines
185 B
Ruby
Raw Normal View History

class AddIndexToPhysicalTickets < ActiveRecord::Migration
def change
add_column :physical_tickets, :token, :string
add_index :physical_tickets, :token, unique: true
end
end