andela/eventx

View on GitHub
db/migrate/20150919074611_create_bookings.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateBookings < ActiveRecord::Migration
  def change
    create_table :bookings do |t|
      t.references :user, index: true
      t.references :event, index: true

      t.timestamps null: false
    end
  end
end