Active Record Migrations — Ruby on Rails Guides and ActiveRecord::Migration::CommandRecorder state that the CommandRecorder knows how to invert the following commands: add_column, add_index, add_timestamp, create_table, remove_timestamps, rename_column, rename_index, rename_table.
In a migration, if I use change_table, will the CommandRecorder knows how to revert the change?
For example, I suppose that the underlying code will use add_column, but as it is not explicitly called in the migration, will the migration be reversible? If not, could that be explicitly written in the doc and guides?
class ExampleMigration < ActiveRecord::Migration def change change_table :products do |t| t.string :category end end end
Yours