Hi I get the following when I try and run "rake db:migrate" (I"m running un Ubuntu linux) ********** code ********** (in /<home hidden>) == 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
you''re missing the table property. add_column :table_name, :column_name, :type remove_column :table_name, :column_name On Nov 29, 3:41 pm, Jean Nibee <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi > I get the following when I try and run "rake db:migrate" (I"m running un > Ubuntu linux) > > ********** code ********** > (in /<home hidden>) > == 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. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jdswift wrote:> you''re missing the table property. > > add_column :table_name, :column_name, :type > remove_column :table_name, :column_name > > > > > On Nov 29, 3:41 pm, Jean Nibee <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Hahaha... Oh my goodness! Those trees blocked my view of the forest. Thanks very much. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---