Skip to content

Instantly share code, notes, and snippets.

@Wendersonandes
Created September 7, 2020 19:53
Show Gist options
  • Save Wendersonandes/16d7e44f737d5a42a7fe073ec5cc0ef4 to your computer and use it in GitHub Desktop.
Save Wendersonandes/16d7e44f737d5a42a7fe073ec5cc0ef4 to your computer and use it in GitHub Desktop.
Reset postgres tables on Rails
ActiveRecord::Base.connection.reset_pk_sequence!('table_name')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment