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
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
>
>
2 matches
Mail list logo