class CreateTableForCommitteesCouncillors < ActiveRecord::Migration
  def change
    create_table :committees_councillors do |t|
      t.belongs_to :committee, index: true
      t.belongs_to :councillor, index: true
    end
    add_foreign_key :committees_councillors, :committees
    add_foreign_key :committees_councillors, :councillors
  end
end

Add Join Table Between Committees & Councillor
Add Join Table Between Committees & Councillor

Add a join table between the committees model and councillor model since
there can be many councillors on many committees and there can be many
committees with many councillors.
