Skip to content
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

Open
runlevel5 opened this issue Sep 7, 2010 · 3 comments
Open

Migration doesn't run #1

runlevel5 opened this issue Sep 7, 2010 · 3 comments

Comments

@runlevel5
Copy link

I got error cannot convert String to Integer when doing rake db:migrate. I am on mysql 2.8.1 adapter btw.

@jdevine
Copy link
Owner

jdevine commented Sep 10, 2010

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.

@moonshine
Copy link

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.

@jdevine
Copy link
Owner

jdevine commented Sep 11, 2010

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.

whitmanc referenced this issue in whitmanc/spree_product_sort Jul 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants