class CreateJoinTableVendorEmployer < ActiveRecord::Migration[7.1] def change create_join_table :vendors, :employers do |t| # t.index [:vendor_id, :employer_id] # t.index [:employer_id, :vendor_id] end end end