rake script for update exiting records and add spec test