method

primary_keys

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaCache
primary_keys(connection, table_name) 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/schema_cache.rb, line 307
      def primary_keys(connection, table_name)
        @primary_keys.fetch(table_name) do
          if data_source_exists?(connection, table_name)
            @primary_keys[deep_deduplicate(table_name)] = deep_deduplicate(connection.primary_key(table_name))
          end
        end
      end
Register or log in to add new notes.