I am working with a friend on a small Rails app to continue learning Rails, and I cloned his GitHub repository on my old laptop.
When I migrated everything to my new laptop the next day, I was forced to add a 1 at the end of my laptop user account, and for some reason this is showing up when I try to work on the app in the new laptop (specifically after running rails db:migrate):
ActiveRecord::ConnectionNotEstablished: connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL: role "my_laptop_name1" does not exist
I understand the new laptop is at the heart of the issue, I just can't figure out how/why.
I have tried many StackOverflow solutions (here, here, here) but am not having much luck anywhere.