On Apr 9, 10:19 pm, Ichiro Saga <[email protected]> wrote:
> So we could have rewritten our last migration like this:
> def self.up
> change_table :comments do |t|
> t.add_string :name, :email, :website
> end

You can do

t.string :foo, :bar, :baz

But I don't think add_string has ever existed, similarly t.timestamps
exists, but not t.add_timestamps. Looks like your book is just wrong

Fred

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to