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

Add index, explicit removal of id for join table
user
```ruby
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
```
assistant