Closed ngouy closed 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
2 possible solutions: remove the remove_index or move it up
remove_index
I chose the latter so up and down are symmetric, it's more esthetic and explicit.
Thanks
If you remove a column, the indexes are by default also removed Thus this migration causes following if we try to rollback![image](https://user-images.githubusercontent.com/12391171/122462250-5e510c00-cf82-11eb-96c9-2171dff335d5.png)
2 possible solutions: remove the
remove_index
or move it upI chose the latter so up and down are symmetric, it's more esthetic and explicit.