PG::ObjectInUse: ERROR: database is being accessed by other users

Hi, I’m trying to reset my database in order to make some changes and reseed the db. The app is made with Rails. At first I got error: You are attempting to run a destructive action against your 'production' database. After doing bin/rails db:migrate:reset DISABLE_DATABASE_ENVIRONMENT_CHECK=1 I’m now getting error: database "my_db" is being accessed by other users. I found a similar post on this forum but no solution and I’m out of ideas to try.