Sha256: 331f221f344527473f8c9a2be036d62fca2f0e2eb2f6b5de4dc6e2aabfcc0e0d

Contents?: true

Size: 368 Bytes

Versions: 12

Compression:

Stored size: 368 Bytes

Contents

module ROM
  module SQL
    # @api private
    class ForeignKey
      extend Initializer
      include Dry::Equalizer(:attributes, :parent_table, :options)

      DEFAULT_PARENT_KEYS = %i(id).freeze

      param :attributes

      param :parent_table, type: Dry::Types['strict.symbol']

      option :parent_keys, default: -> { DEFAULT_PARENT_KEYS }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rom-sql-3.1.0 lib/rom/sql/foreign_key.rb
rom-sql-3.0.1 lib/rom/sql/foreign_key.rb
rom-sql-3.0.0 lib/rom/sql/foreign_key.rb
rom-sql-2.5.0 lib/rom/sql/foreign_key.rb
rom-sql-2.4.0 lib/rom/sql/foreign_key.rb
rom-sql-2.3.0 lib/rom/sql/foreign_key.rb
rom-sql-2.2.1 lib/rom/sql/foreign_key.rb
rom-sql-2.2.0 lib/rom/sql/foreign_key.rb
rom-sql-2.1.0 lib/rom/sql/foreign_key.rb
rom-sql-2.0.0 lib/rom/sql/foreign_key.rb
rom-sql-2.0.0.rc1 lib/rom/sql/foreign_key.rb
rom-sql-2.0.0.beta3 lib/rom/sql/foreign_key.rb