Update_all broken in postgres?



has anyone managed to use update_all with rails on postgres?

In my setup, it does not work:

NoMethodError: undefined method update_all' for #<Keyword:0xb7ac4670> from /home/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1786:inmethod_missing’
from (irb):14

I checked that the base.rb class contains the update_all method, so it
seems like

    connection.update(sql, "#{name} Update")

isn’t working


sorry just realised this is a class method, not an instance method!


update_all is for ActiveRecord…use class_name.update_all