bmabey/database_cleaner — pull request #84 by jhollinger (2011-12-01 05:06:41+00:00)
Title: Truncation should reset a table's id column

Per issue #66, this patch brings consistency to the Truncation strategy, in terms of the state that a table's id column is left in after a cleaning. With this change, any db's table id columns should be reset to 0 after truncation. This is the default behavior of TRUNCATE for Oracle, IBM, MSSQL, and MySQL. This commit merely mimics that behavior for SQLite and Postgres.

I don't know enough about the NoSQL dbs to guess if or how this should apply to them.