I have the following migration
class LinkDoctorsAndSpecializations < ActiveRecord::Migration def up add_reference :doctors, :doctor_specialization, poly
I've heard the best way to fix this is to just leave it out of the add reference line and specify it manually below much like in the last line of your question
add_index :table, :column, :name => 'index name'