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
> Ac
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
2 matches
Mail list logo