lib/rom/sql/schema/dsl.rb in rom-sql-3.1.0 vs lib/rom/sql/schema/dsl.rb in rom-sql-3.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'rom/sql/schema/index_dsl'
module ROM
module SQL
class Schema < ROM::Schema
@@ -13,10 +15,10 @@
# Define indexes within a block
#
# @api public
def indexes(&block)
- @index_dsl = IndexDSL.new(options, &block)
+ @index_dsl = IndexDSL.new(**options, &block)
end
private
# Return schema options