Marnen Laibow-Koser wrote: > J46 S46 wrote: > [...] >> anyway, i added a new colum to my comments table by entering "ruby >> script/generate migration add_name_to_comment name:string" >> >> and when i look in my migrations file, it seems to have worked: >> class AddNameToComment < ActiveRecord::Migration >> def self.up >> add_column :comments, :name, :string >> end >> >> def self.down >> remove_column :comments, :name >> end >> end > > Yes, you've got the correct code in your migration file. Now...did you > remember to run the migration? > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org
Yeah, i did. sorry, forgot to mention that... -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---