class
ActiveRecord::Migration::CommandRecorder
v4.2.1 -
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_timestamps
-
create_table
-
create_join_table
-
remove_timestamps
-
rename_column
-
rename_index
-
rename_table
Included modules
- ActiveRecord::Migration::CommandRecorder::StraightReversions
- ActiveRecord::Migration::JoinTable
Attributes
| [RW] | commands |
| [RW] | delegate |
| [RW] | reverting |
Files
- activerecord/lib/active_record/migration/command_recorder.rb