# File lib/active_record/connection_adapters/abstract/database_statements.rb, line 384
      def last_inserted_id(result)
        row = result.rows.first
        row && row.first
      end