Method: ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting#quote_table_name

Defined in:
lib/active_record/connection_adapters/postgresql/quoting.rb

#quote_table_name(name) ⇒ Object

Checks the following cases:

  • table_name

  • “table.name”

  • schema_name.table_name

  • schema_name.“table.name”

  • “schema.name”.table_name

  • “schema.name”.“table.name”



86
87
88
# File 'lib/active_record/connection_adapters/postgresql/quoting.rb', line 86

def quote_table_name(name) # :nodoc:
  QUOTED_TABLE_NAMES[name] ||= Utils.extract_schema_qualified_name(name.to_s).quoted.freeze
end