Method: ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_primary_key?

Defined in:
lib/active_record/connection_adapters/abstract_adapter.rb

#supports_primary_key?Boolean

Can this adapter determine the primary key for tables not attached to an Active Record class, such as join tables? Backend specific, as the abstract adapter always returns false.

Returns:

  • (Boolean)


62
63
64
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 62

def supports_primary_key?
  false
end