On Fri, Dec 19, 2008 at 12:30 PM, Brian A.
<rails-mailing-l...@andreas-s.net> wrote:

> 1) Created db via Rake
> 2) Created table with 3 columns via Migration (user name:string
> hobby:string age:integer)
> 3) Inserted 3 user records via Rails Console
> 4) Added additional column via Migration (AddEmailField email:string)
> (Inside the migration rb -> "add_column :users, :email, :string"

There should be a step 4a) here -- rake db:migrate

Did you do that? If so, can you confirm that the table was altered?

> 5) This is where things go poorly, I try to add a new user with the
> email but get an error.  Here is what I enter via Rails Console
> user = User.new(:name => "TommyJones", :hobby => "tennis", :age => 138,
> :email => "ema...@asdfgmail.com")

And did you restart the console after running the migration?

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to