method

quoted_scope

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: SchemaStatements
quoted_scope(name = nil, type: nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 1080
          def quoted_scope(name = nil, type: nil)
            schema, name = extract_schema_qualified_name(name)
            type =                case type
              when "BASE TABLE"
                "'r','p'"
              when "VIEW"
                "'v','m'"
              when "FOREIGN TABLE"
                "'f'"
              end
            scope = {}
            scope[:schema] = schema ? quote(schema) : "ANY (current_schemas(false))"
            scope[:name] = quote(name) if name
            scope[:type] = type if type
            scope
          end
Register or log in to add new notes.