lib/rom/sql/schema/dsl.rb in rom-sql-3.6.4 vs lib/rom/sql/schema/dsl.rb in rom-sql-4.0.0.alpha1

- old
+ new

@@ -1,15 +1,17 @@ # frozen_string_literal: true -require 'rom/sql/schema/index_dsl' +require "rom/compat/schema/dsl" +require_relative "index_dsl" module ROM module SQL class Schema < ROM::Schema # Specialized schema DSL with SQL-specific features # # @api public + # @deprecated class DSL < ROM::Schema::DSL # @!attribute [r] index_dsl # @return [IndexDSL] Index DSL instance (created only if indexes block is called) attr_reader :index_dsl @@ -27,10 +29,10 @@ # @api private def opts if index_dsl opts = super - { **opts, indexes: index_dsl.(relation, opts[:attributes]) } + {**opts, indexes: index_dsl.(relation, opts[:attributes])} else super end end end