method
within_each_schema
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaDumper
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