Method: ActiveRecord::ConnectionAdapters::AbstractAdapter#prefetch_primary_key?

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

#prefetch_primary_key?(table_name = nil) ⇒ Boolean

Should primary key values be selected from their corresponding sequence before the insert statement? If true, next_sequence_value is called before each insert to set the record’s primary key. This is false for all adapters but Firebird.

Returns:

  • (Boolean)


89
90
91
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 89

def prefetch_primary_key?(table_name = nil)
  false
end