andela/eventx

View on GitHub
db/migrate/20150916093927_create_user_tickets.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateUserTickets < ActiveRecord::Migration
  def change
    create_table :user_tickets do |t|
      t.references :user, index: true
      t.references :ticket_type, index: true
      t.string :ticket_number

      t.timestamps null: false
    end
  end
end