I'm curious how come the #add_column method in migrations does not support 
an optional :index option, which would also create an index for that column.

Since there is the possibility to do something similar like:

create_table :taggings do |t|
  t.references :tagger, polymorphic: true, index: trueend

I'm curious as to if there's any practical reason due to which this feature 
isn't implemented or if it's just that nobody thought of it yet. If it's 
feasible I couldl start working on it and submit a PR.

Cheers

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to