Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active March 3, 2023 15:38
Show Gist options
  • Save DevGW/9534af305a2e23747da6b1bb41a4f849 to your computer and use it in GitHub Desktop.
Save DevGW/9534af305a2e23747da6b1bb41a4f849 to your computer and use it in GitHub Desktop.
postgres :: Reset unique keys for incremental column #hha_ank
ActiveRecord::Base.connection.reset_pk_sequence!('products')
to reset unique keys for incremental.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment