instance method
prefetch_primary_key?
Ruby on Rails 6.0.6
Since v2.2.3Signature
prefetch_primary_key?(table_name = nil)
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.
Parameters
-
table_nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 318
def prefetch_primary_key?(table_name = nil)
false
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 318
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter