andela/eventx

View on GitHub
db/migrate/20160216093616_add_index_to_event_staff.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddIndexToEventStaff < ActiveRecord::Migration
  def change
    add_index :event_staffs, [:user_id, :event_id], unique: true
  end
end