instance method
next_sequence_value
Ruby on Rails 7.0.10
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 403
def next_sequence_value
connection.next_sequence_value(sequence_name)
end
Defined in activerecord/lib/active_record/model_schema.rb line 403
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ModelSchema::ClassMethods