mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.96k stars 1.19k forks source link

fix non rollbackable tenant migration #1038

Closed ngouy closed 3 years ago

ngouy commented 3 years ago

If you remove a column, the indexes are by default also removed Thus this migration causes following if we try to rollback image

2 possible solutions: remove the remove_index or move it up

I chose the latter so up and down are symmetric, it's more esthetic and explicit.

seuros commented 3 years ago

Thanks