This method is only available on newer versions. The first available version (v7.2.3) is shown here.
uuid()
Returns a UUID for this transaction or nil if no transaction is open.
# File activerecord/lib/active_record/transaction.rb, line 124 def uuid if @internal_transaction @uuid ||= Digest::UUID.uuid_v4 end end