instance method
next_sequence_value
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
next_sequence_value()
Returns the next value that will be used as the primary key on an insert statement.
Source
# File activerecord/lib/active_record/model_schema.rb, line 427
def next_sequence_value
with_connection { |c| c.next_sequence_value(sequence_name) }
end
Defined in activerecord/lib/active_record/model_schema.rb line 427
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ModelSchema::ClassMethods