current_schema()
Returns the current schema name.
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 215 def current_schema query('SELECT current_schema', 'SCHEMA')[0][0] end