splendeo / activerecord-reset-pk-sequence

Allows resetting the id of an AR table to 0. Useful after a delete_all. Works in Postgres and Sqlite (not MySQL) for now.
MIT License
20 stars 6 forks source link

added delete_all_and_reset method #2

Closed kmmndr closed 11 years ago

kmmndr commented 11 years ago

Hi, I've added a method to call delete_all and reset_pk_sequence in one call.