method

within_each_schema

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.

within_each_schema()
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 142
          def within_each_schema
            @dump_schemas.each do |schema_name|
              old_search_path = @connection.schema_search_path
              @connection.schema_search_path = schema_name
              self.schema_name = schema_name
              yield
            ensure
              self.schema_name = nil
              @connection.schema_search_path = old_search_path
            end
          end