update ActiveRecord