method

extract_pg_identifier_from_name

extract_pg_identifier_from_name(name)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 1293
        def extract_pg_identifier_from_name(name)
          match_data = name.start_with?('"') ? name.match(/\"([^\"]+)\"/) : name.match(/([^\.]+)/)

          if match_data
            rest = name[match_data[0].length, name.length]
            rest = rest[1, rest.length] if rest.start_with? "."
            [match_data[1], (rest.length > 0 ? rest : nil)]
          end
        end