update active_record