[Rails] Re: Re: postgresql sequence and migrations

2013-01-12 Thread Bob Gustafson
Lance wrote in post #93083: There is a method in the Postgresql adapter called reset_pk_sequence. I haven't used it yet but it sounds like this is what you are looking for. I used it: Account.delete_all Account.reset_pk_sequence but, it didn't work. The next Account.save had the :id = last

[Rails] Re: Re: postgresql sequence and migrations

2013-01-12 Thread Bob Gustafson
Bob Gustafson wrote in post #1092090: Lance wrote in post #93083: There is a method in the Postgresql adapter called reset_pk_sequence. I haven't used it yet but it sounds like this is what you are looking for. I used it: Account.delete_all Account.reset_pk_sequence but, it didn't work.