Created
May 19, 2020 08:39
-
-
Save skalibog/19856d782a5e4fc432f3f09e7eeb6234 to your computer and use it in GitHub Desktop.
reset pkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.connection.tables.each do |table_name| | |
ActiveRecord::Base.connection.reset_pk_sequence!(table_name) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment