AWDWR : Rake Aborted!

00:42:34:~/work/depot > rake db:migrate
(in /Users/balaparanj/work/depot)
== AddPrice: migrating ========================================================
-- add_column(:products, :price, :decimal, {:precision=>8, :scale=>2,
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]

I have the 002_add_price.rb the same as in the book:

class AddPrice < ActiveRecord::Migration
  def self.up
    add_column :products, :price, :decimal, :precision => 8, :scale =>
2, :default => 0

  def self.down
    remove_column :products, :price

Why is the rake failing? I was able to run the first migration and it
created the products table. TIA.

You need to be on Edge Rails for decimal support to work.