Do multi-records swap and updates attributes in RoR