更新counter_cache字段 ActiveRecord::Base.connection.execute("update corps set followers_count = 4 where id = 162") 类似这种,如果ActiveRecord中已查出了数据,还需要reload一下更新count,或者手动更新