You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: create_statistics.rb
    path of file: ./repos/pg_trunk/lib/pg_trunk/operations/statistics
    
    the code of the file until where you have to start completion: # frozen_string_literal: false

# @!parse
#   class ActiveRecord::Migration
#     # Create a custom statistics
#     #
#     # @param [#to_s] name (nil) The qualified name of the statistics
#     # @option options [Boolean] :if_not_exists (false)
#     #   Suppress the error when the statistics is already exist
#     # @option options [#to_s
    
    def register_object
      <<~SQL
        INSERT INTO pg_trunk(oid, classid)
        SELECT s.oid, 'pg_statistic_ext'::regclass
        FROM pg_statistic_ext s
          JOIN pg_class t ON t.oid = s.stxrelid
        WHERE s.stxname = #{name.quoted}
          AND s.stxnamespace = #{name.namespace}
          AND t.relname = #{table.quoted}
          AND t.relnamespace = #{table.namespace}
        ON CONFLICT DO NOTHING;
      SQL
    end