[Rails] Re: Explain this migrate line?

2009-01-19 Thread Frederick Cheung
On 19 Jan 2009, at 03:05, typemismatch wrote: > > 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 met

[Rails] Re: Explain this migrate line?

2009-01-18 Thread Shiv N Gautam
Title : name of the column string : type of the column. it maps to varchar/varchar2 Similarly for Price http://api.rubyonrails.com/classes/ActiveRecord/Migration.html -- Shiv N Gautam On Mon, Jan 19, 2009 at 8:35 AM, typemismatch wrote: > > So I have this code in a migration file > >