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