Join GitHub today
index option added for change_table migrations #23593
In case if we want to add a column into the existing table
Old behaviour in action:
New behaviour in action:
Exactly same behaviour is already exist for
referenced this pull request
Mar 3, 2016
@rafaelfranca you were the one with objection on this feature, are you still against of this? If not, I'll resolve the conflicts and then we can merge. I remember too many times I tried to add columns to tables with indices by forgetting that rails does not support this feature and it's really annoying. WDYT?
If there's still pushback, you could refactor this PR to raise an error if someone tries to add an index inline within a
Either way, there's something that needs to be added because its really unclear that this is currently unsupported.