Ruby on Rails Discussions
Truncate table to reset id back to 1
rubyonrails-talk
Chris_Hall
(Chris Hall)
July 18, 2007, 10:26am
1
in mysql:
ALTER TABLE <table> SET AUTO_INCREMENT = 1
Related topics
Topic
Replies
Views
Activity
Change the start of auto_increment?
rubyonrails-talk
3
198
March 7, 2009
Disable autoincrement
rubyonrails-talk
5
875
November 30, 2009
Initializind ID for a Table
rubyonrails-talk
1
184
August 24, 2009
Mysql and Auto_Increment woes
rubyonrails-talk
1
130
April 22, 2007
start primary key id > 1
rubyonrails-talk
0
110
December 13, 2006