method

new

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaDumper

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

new(connection, options = {})
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 10
          def initialize(connection, options = {})
            super

            @dump_schemas =
              case ActiveRecord.dump_schemas
              when :schema_search_path
                connection.current_schemas
              when String
                schema_names = ActiveRecord.dump_schemas.split(",").map(&:strip)
                schema_names & connection.schema_names
              else
                connection.schema_names
              end
          end