Today I learned in order to make a remove_column
migration reversible (which I need often when tinkering in development with the perfect database setup) we need to add the the type which is not required for migrating the database.
remove_column :table, :column, :type
For just a few more characters, the investment definitely pays off in case of the need to reverse the migration (even if it's not only in development).
Top comments (2)
Or you can explicitly specify
up
anddown
methods 🙂of course! much more typing there though ;)