This method is deprecated or moved on the latest stable version.
The last existing version (v4.1.8) is shown here.
schema_exists?(name)
public
Returns true if schema exists.
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 121
def schema_exists?(name)
exec_query( SELECT COUNT(*) FROM pg_namespace WHERE nspname = '#{name}', 'SCHEMA').rows.first[0].to_i > 0
end