I am having a strange problem. I am trying to update a bunch of records like this
a.each do |a|
b = Company.find_by_id(a.company_id)
b.col_name = Time.now
after I run this, I check the DB and the column “col_name” is indeed
updated. However, if I check the DB 5-10 minutes later, all
changes are gone. I’ve tried update_attribute, same problem.
Any idea what I am doing wrong?