Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Auto increment ID going up by 10

#3

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?

Reported by Yuri Tomanek · August 1st, 2009 @ 10:33 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Neeraj Singh
    Neeraj Singh
    • Milestone order changed from 0 to 0

    moonshine.cnf.erb has following line

    auto-increment-increment = <%= configuration[:mysql][:auto_increment_increment] || '10'

    September 16th, 2010 @ 11:16 AM

  2. Matt Scilipoti
    Matt Scilipoti

    Corrected by adding this to moonshine.yml:
    :mysql: #override default of 10 (10?). :auto_increment_increment: 1

    September 28th, 2010 @ 12:35 PM

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.