instance method invert_transaction

Ruby on Rails 7.2.3

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

invert_transaction(args, &block)

No documentation comment.

Parameters

args req
block block
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 180
        def invert_transaction(args, &block)
          sub_recorder = CommandRecorder.new(delegate)
          sub_recorder.revert(&block)

          invertions_proc = proc {
            sub_recorder.replay(self)
          }

          [:transaction, args, invertions_proc]
        end

Defined in activerecord/lib/active_record/migration/command_recorder.rb line 180 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Migration::CommandRecorder

Type at least 2 characters to search.

↑↓ navigate · open · esc close