method

views

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

views()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 121
        def views # :nodoc:
          select_values(            SELECT c.relname            FROM pg_class c            LEFT JOIN pg_namespace n ON n.oid = c.relnamespace            WHERE c.relkind IN ('v','m') -- (v)iew, (m)aterialized view            AND n.nspname = ANY (current_schemas(false)), 'SCHEMA')
        end