class CommandRecorder
Ruby on Rails 4.1.16
Since v3.1.12ActiveRecord::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
Inherits from
Namespace
Modules
Includes
Attributes
Methods (defined here)
- # change_table
- # inverse_of
- # record
- # revert
- self. new
Private methods
(9)
Implementation detail — not part of the public API.
Methods (inherited)
From Object (22)
- # <
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_json_with_active_support_encoder
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix