Update active_record