Module: ActiveRecord::Migration::Compatibility::V5_2::CommandRecorder
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #invert_change_column_comment(args) ⇒ Object
- #invert_change_table_comment(args) ⇒ Object
- #invert_transaction(args, &block) ⇒ Object
Instance Method Details
#invert_change_column_comment(args) ⇒ Object
31 32 33 34 |
# File 'lib/active_record/migration/compatibility.rb', line 31 def invert_change_column_comment(args) table_name, column_name, comment = args [:change_column_comment, [table_name, column_name, from: comment, to: comment]] end |
#invert_change_table_comment(args) ⇒ Object
36 37 38 39 |
# File 'lib/active_record/migration/compatibility.rb', line 36 def invert_change_table_comment(args) table_name, comment = args [:change_table_comment, [table_name, from: comment, to: comment]] end |
#invert_transaction(args, &block) ⇒ Object
27 28 29 |
# File 'lib/active_record/migration/compatibility.rb', line 27 def invert_transaction(args, &block) [:transaction, args, block] end |