class ActiveRecord::ConnectionAdapters::SavepointTransaction

def restart

def restart
  return unless materialized?
  @instrumenter.finish(:restart)
  @instrumenter.start
  connection.rollback_to_savepoint(savepoint_name)
end