# Id is getting incremented

**URL:** <https://www.ruby-forum.com/t/id-is-getting-incremented/141781>\
**Category:** Rails\
**Created:** [June 30, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/id-is-getting-incremented/141781 "2008-06-30T15:46:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [June 30, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/id-is-getting-incremented/141781/1 "2008-06-30T15:46:13Z")

</div>

hi iam using rails 2.1.o when i connected to my mysql.and i created a  
scaffold name user.in the database the id of the model user is  
incremented to 996332880

is this a problem in 2.1.0

---

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [June 30, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/id-is-getting-incremented/141781/2 "2008-06-30T17:05:04Z")

</div>

Hi,

On Mon, Jun 30, 2008 at 6:46 AM, Lost W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi iam using rails 2.1.o when i connected to my mysql.and i created a  
> scaffold name user.in the database the id of the model user is  
> incremented to 996332880

Are you connecting to your test database? Do you have any test  
fixtures loaded? Test fixtures get generated IDs, which are usually  
very large. If you create a new user after some user fixtures are  
loaded, the new ID will be very large as well.

~ j.
