Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Cookin' with Ruby on Rails - May
Subject:   Migration Error
Date:   2007-08-14 11:25:56
From:   ezosoro
Response to: Migration Error on Linux

It took looking at the screen shot of the command prompt window before I got this to work correctly, as it shows something totally different then the screen shot of the "002_add_contributor_name" file.


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 ;).