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: merge_schema_configs.rb
    path of file: ./repos/motor-admin-rails/lib/motor/build_schema
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Motor
  module BuildSchema
    module MergeSchemaConfigs
      module_function

      # @param schema [Array<HashWithIndifferentAccess>]
      # @param cache_keys [Hash]
      #
    
      def merge_scopes!(model, configs)
        model[:scopes] = merge_by_name(
          model[:scopes],
          configs[:scopes],
          SCOPE_DEFAULTS,
          ->(scope) { scope[:scope_type] != 'filter' }
        )

        model
      end