method
reset_sequence!
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::DatabaseStatements
reset_sequence!(table, column, sequence = nil)public
Set the sequence to the max value of the table’s column.
reset_sequence!(table, column, sequence = nil)Set the sequence to the max value of the table’s column.