class CreateEventsHospitalities < ActiveRecord::Migration
  def change
    create_table :events_hospitalities do |t|
			t.integer :event_id
			t.integer :hospitality_id
    end
  end
end

class CreateEventsHospitalities < ActiveRecord::Migration
  def change
    create_table :events_hospitalities, id: false do |t|
			t.integer :event_id
			t.integer :hospitality_id
    end
		add_index :events_hospitalities, ["event_id", "page_id"]
  end
end

Add index, explicit removal of id for join table
Add index, explicit removal of id for join table
