Module: ActiveRecord::Migration::Compatibility::V5_2::CommandRecorder

Defined in:
activerecord/lib/active_record/migration/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#invert_change_column_comment(args) ⇒ Object



34
35
36
37
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 34

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



39
40
41
42
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 39

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



30
31
32
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 30

def invert_transaction(args, &block)
  [:transaction, args, block]
end