module ActiveRecord::ModelSchema::ClassMethods

def prefetch_primary_key?

corresponding sequence before the insert statement.
Determines if the primary key values should be selected from their
def prefetch_primary_key?
  connection.prefetch_primary_key?(table_name)
end