I was trying out posting a new acronym based on the final version of source code for chapter 9 (Parent Child Relationships).
I reset the database before adding a new acronym, but I failed to create a user before doing a call to create the acronym. This returns an HTTP 500 error for the call to create an acronym.
Following that, I successfully added a user, then create an acronym with the newly created user’s id. This returns an HTTP 200 and the acronym is created successfully.
But I notice that the id of the acronym is 2 and not 1. Is there a reason why a failed attempt at creating a new record increments the index of the table? Or is this a bug somewhere?