@pgr: Thanks for letting me know your approach.
Coincidentally, I was able to resolve the issue today. I didn’t need to make changes in the database directly. I made changes in the base.rb to handle the create_user_actions (very similar to create_post_actions) and used this create_user_actions function to bulk migrate the likes given and received by the user. This fixed all the like related issues for me.