Sha256: ab91c5916c61d629c6fcd55dbc4184e518c974931418737f765ccdaa1ce13606

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

module Torque
  module PostgreSQL
    module Adapter
      module TableDefinition
        attr_reader :inherits

        def initialize(*args, **options)
          super

          @inherits = Array.wrap(options.delete(:inherits)).flatten.compact \
            if options.key?(:inherits)
        end
      end

      ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition.include TableDefinition
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
torque-postgresql-3.4.1 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.4.0 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.3.3 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.3.2 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.3.1 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.3.0 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.2.2 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.2.1 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.2.0 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.1.0 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.0.1 lib/torque/postgresql/adapter/schema_definitions.rb
torque-postgresql-3.0.0 lib/torque/postgresql/adapter/schema_definitions.rb