Skip to content

Instantly share code, notes, and snippets.

@osnysantos
Created Aug 20, 2016
Embed
What would you like to do?
ActiveRecord::Base.connection.tables.each do |t|
ActiveRecord::Base.connection.reset_pk_sequence!(t)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment