Article:
 |
|
Cookin' with Ruby on Rails - May
|
| Subject: |
|
Migration Error on Linux |
| Date: |
|
2007-07-10 11:41:25 |
| From: |
|
waylonflinn
|
|
|
|
Howdy,
I finished the article series ending at:
http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html?page=4
and followed the link over here. Everything seemed to go fine until I got to page 4 and the db:migrate command which runs AddContributorName (file shown here: http://www.oreillynet.com/ruby/2007/05/17/graphics/figure018_large.gif). It gave me the following error:
"You have a nil object when you didn't expect it!"
After a comparison with http://www.oreillynet.com/ruby/2007/05/17/graphics/figure019_large.gif I changed "string" to :string and got the following error:
"Mysql:Error: Table 'rollingrails_development.Recipes' doesn't exist:[...]"
I then changed 'Recipes' to 'recipes' in the add_column function. This produced the results expected.
Thanks for the excellent series,
Waylon
|
Showing messages 1 through 4 of 4.
-
Migration Error on Linux
2007-07-11 06:36:36
Bill Walton |
[View]
-
Migration Error on Linux
2007-07-29 03:00:52
Geldart
[View]
-
Migration Error on Linux
2007-07-22 10:23:19
DaveMatuszek
[View]
-
Migration Error
2007-08-14 11:25:56
ezosoro
[View]
Sorry you had a problem, but thanks much for making the time to let me know. If you get a chance, it would be great to know what Linux distro, version of Rails, etc. you're using. I'd like to investigate / understand this better. I'm working in Windows and I'm guessing there must be some difference between it and your Linux distro that's causing this. Maybe there's a way to avoid it. Sometime in the next few weeks I'm going to go back and redo the images to make them small enough that they don't require the "click to enlarge" button and, at the same time, I'll have an opportunity to make some minor changes.
Thanks again.
Bill