update activerecord