So I have this code in a migration file ....

    create_table :books do |t|
      t.column  "Title",  :string
      t.column  "Price",  :decimal
      t.timestamps
    end

Are "Title" and :string just parameters being passed to the method
t.column?

If so, I understand that "Title" is a string parameter, what
is :string? a type param?

Thanks
-c

--~--~---------~--~----~------------~-------~--~----~
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