| Article: |
Cookin' with Ruby on Rails - May | |
| Subject: | Migration Error on Linux | |
| Date: | 2007-07-22 10:23:19 | |
| From: | DaveMatuszek | |
|
Response to: Migration Error on Linux
|
||
|
I had the same problem using InstantRails 1.7 with Ruby 1.8.6 and Rails 1.2.3. Capitalization of "Recipes" doesn't seem to be important, but "string" must be :string.
|
||
Showing messages 1 through 1 of 1.
-
Migration Error
2007-08-14 11:25:56 ezosoro [View]



If you use this for the "add_column" line it should work correctly...
add_column("Recipes", "contributor_name", :string, {:default => "Unknown"})
It was missing the brackets around the default value and string needs a colon and no quotations afterwards. Hope it helps everyone out ;).