current_schema()
Returns the current schema name.
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 262 def current_schema select_value('SELECT current_schema', 'SCHEMA') end