lib/rom/sql/foreign_key.rb in rom-sql-3.6.4 vs lib/rom/sql/foreign_key.rb in rom-sql-4.0.0.alpha1
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
+require "dry/core/equalizer"
+
module ROM
module SQL
# @api private
class ForeignKey
extend Initializer
@@ -9,10 +11,10 @@
DEFAULT_PARENT_KEYS = %i[id].freeze
param :attributes
- param :parent_table, type: Dry::Types['strict.symbol']
+ param :parent_table, type: Dry::Types["strict.symbol"]
option :parent_keys, default: -> { DEFAULT_PARENT_KEYS }
end
end
end