Tag: to_sym
-
undefined method `to_sym’ for nil:NilClass – Ruby on Rails Migration
While trying to do a migration today I received the following message: undefined method `to_sym’ for nil:NilClass #After running a trace (rake db:migrate –trace) undefined method `to_sym’ for nil:NilClass /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/whiny_nil.rb:48:in `method_missing’ … This was the migration: class AddDefaultValuesToFeedbacks 0 change_column :stores, :rating, :decimal, :precision => 8, :scale => 2, :default => 0 end end Unfortunately…