It works well when a migration is only doing one column add/change..
For larger inter-related migrations, the user will need to re-arrange the DDL to make pg happy. But at least with this PR they wont forget, and have the required DDL, albeit in the wrong order.
A lot of work is going to be needed to choice the best order of operations in order to correctly migrate and rollback, esp if there is data, i.e. https://github.com/Electron100/butane/issues/226
I forgot this when doing https://github.com/Electron100/butane/pull/158
It works well when a migration is only doing one column add/change.. For larger inter-related migrations, the user will need to re-arrange the DDL to make pg happy. But at least with this PR they wont forget, and have the required DDL, albeit in the wrong order.
A lot of work is going to be needed to choice the best order of operations in order to correctly migrate and rollback, esp if there is data, i.e. https://github.com/Electron100/butane/issues/226