module PGSchemaHelper
Public Instance Methods
with_schema_search_path(schema_search_path) { || ... }
click to toggle source
# File activerecord/test/cases/adapters/postgresql/schema_test.rb, line 8 def with_schema_search_path(schema_search_path) @connection.schema_search_path = schema_search_path @connection.schema_cache.clear! yield if block_given? ensure @connection.schema_search_path = "'$user', public" @connection.schema_cache.clear! end