Auto increment ID going up by 10
Reported by Yuri Tomanek | August 1st, 2009 @ 10:33 AM
After deploying my app with moonshine all my ID's go up by 10
now.
For example -
I have a table for photos.
First photo has ID = 1
Second photo has ID = 11
Third photo has ID = 21
etc
On my development machine it goes up as you would expect.
I have doubled check my code and cannot find any reason for
this.
Is it possible something in the deploy with moonshine has caused
this?
Any ideas?
Comments and changes to this ticket
-
Neeraj Singh September 16th, 2010 @ 11:16 AM
- Milestone order changed from 0 to 0
moonshine.cnf.erb has following line
auto-increment-increment = <%= configuration[:mysql][:auto_increment_increment] || '10'
-
Matt Scilipoti September 28th, 2010 @ 12:35 PM
Corrected by adding this to moonshine.yml:
:mysql: #override default of 10 (10?). :auto_increment_increment: 1
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
OLD, UNUSED lighthouse project for Moonshine. Tickets are now tracked at GitHub Issues:
http://github.com/railsmachine/moonshine/issues