Skip to content

Instantly share code, notes, and snippets.

@jmscarnatto
Created December 12, 2021 14:02
Show Gist options
  • Save jmscarnatto/dff5c19e946776dce3568c58e855fbd9 to your computer and use it in GitHub Desktop.
Save jmscarnatto/dff5c19e946776dce3568c58e855fbd9 to your computer and use it in GitHub Desktop.
ActiveRecord::Base.connection.execute("TRUNCATE TABLE <table_name>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment