method
invert_transaction
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Migration::CommandRecorder
invert_transaction(args)private
No documentation available.
# File activerecord/lib/active_record/migration/command_recorder.rb, line 145
def invert_transaction(args)
sub_recorder = CommandRecorder.new(delegate)
sub_recorder.revert { yield }
invertions_proc = proc {
sub_recorder.replay(self)
}
[:transaction, args, invertions_proc]
end