J
J
jFox2014-01-14 21:11:06
Ruby on Rails
jFox, 2014-01-14 21:11:06

Rails: Is object creation a step to update the "id" column?

Actually here.
When creating a new record in the table, its id changes not from 1 to 2, 3, 4, etc., but to 11, 21, 31, 41, etc.
I don't understand what could be the issue.
Can someone come across a similar one and can tell in which direction to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jFox, 2014-01-15
@jFoxReality

Found the answer somewhere on the Internet:
i have experience use ClearDB on Heroku.
- default mysql engine is MyISAM. if you want another engine, modify migration file.
- default charset is ascii. if you want utf-8, modify migration file
i use ClearDB for personal project so don't know about performance.

H
himik, 2014-01-14
@himik

in the muscle config look for the line
auto-increment-increment = 10

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question