rails/rails — pull request #8267 by marcandre (2012-11-19 07:39:05+00:00)
Title: Reversible commands

This pull request makes the following commands reversible:

* drop_table
* remove_column
* remove_index

It also creates the reversible command `drop_join_table`.

Finally, `remove_columns` and `remove_column` are no longer aliases and the interface of `remove_column` is changed to accept only one column (along with new arguments that are used in case of reversal).

The PR builds on #8177 (itself building on #7627), but the need they all fulfill is independent. Each PR can be accepted/rejected independently. I hope all three can be accepted as they nicely complement each other and give powerful means to create reversible migrations. The ChangeLog remains to be update, but I'll wait until confirmation that this will be merged.

Thanks