Hi
I get the following when I try and run “rake db:migrate” (I"m running un
Ubuntu linux)
********** code **********
(in /)
== AddRpts: migrating
– add_column(“rpts”, :integer, {:limit=>3})
rake aborted!
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
********** code **********
Everything was working fine until my last ‘generate’ to create a
migration like so “ruby script/generate migration add_rpts”
My Migration looks like this:
********** code **********
class AddRpts < ActiveRecord::Migration
def self.up
add_column :rpts, :integer
end
def self.down
remove_column :rpts
end
end
********** code **********
Lastly I did some research on this problem and one suggestion was that I
wasn’t running “Edge Rails”. So I did the upgrade but I get the EXACT
same error.
I upgraded using the command “sudo rake rails:freeze:edge”
Any help will be grateful.
Thanks.