I am using Rails 1.1.6 and when I went to db:migrate on my schema I keep on getting this error (I'm on Windows XP SP2):
I'm reading the 2nd edition of Agile Web book and this is the code I'm trying to do:Code:== AddPrice: migrating ================================= -- add_column(:product, :price, :decimal, (:precision=>8, :scale=>2, :default=>0)) 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. []
Code:class AddPrice < ActiveRecord::Migration def self.up add_column :products, :price, :decimal, :precision => 8, :scale => 2, :default => 0 end def self.down remove_column :products, :price end end
When I was using my Mac I could easily just issues the rake rails:freeze:edge and It was working (of course that was back in october). But my wife broke the mac so now I'm back to sucky ol' windows. So...back to my question. Do I need to go edge on windows since I'm using the most current Rails of v 1.1.6?




Bookmarks