Hi folks, everything fine?
I'm about to create a patch for this, but before I prefer to ask you and listen to your opinions.
Shouldn't ActiveRecord::ConnectionAdapters::TableDefinition#belongs_to add indexes for the column by default? This is an approach that is almost always taken. And when the belongs_to is polymorphic is true, it should add indexes for both columns.
Thank you, waiting your replies.