class

ActiveRecord::Migration::CommandRecorder

v3.1.0 - Show latest stable - Superclass: Object

ActiveRecord::Migration::CommandRecorder records commands done during a migration and knows how to reverse those commands. 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

Attributes

[RW]commands
[RW]delegate

Files

  • activerecord/lib/active_record/migration/command_recorder.rb