instance method
prefetch_primary_key?
Ruby on Rails 4.0.13
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. This is false for all adapters but Firebird.
Parameters
-
table_nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 255
def prefetch_primary_key?(table_name = nil)
false
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 255
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter