-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration doesn't run #1
Comments
Don't have an answer for you -- the code is pretty simple in the migration there -- just run a query and populate a new object from each of the results, letting acts_as_list take care of the initial ordering. Could be something to do with your data (non-integer values in the existing table?) or maybe your connection adapter handles the result differently? I use postgres, and I've had people use it with mysql successfully. |
It's seems to the problem of mysql. I've removed the code and put in my own code that does similar thing. Thanks for your help. |
Okay. If you find out what makes mysql choke on my code, let me know and I'll change it to make it more database-agnostic. Good luck. |
I got error cannot convert String to Integer when doing rake db:migrate. I am on mysql 2.8.1 adapter btw.
The text was updated successfully, but these errors were encountered: