'rails db migrate locally-Multiple migrations have the version number

I'm using docker, and I'm trying to run migrations locally using

docker-compose run app rails db:migrate

I'm getting an error though:

Multiple migrations have the version number 20211230114441.

I tried searching for this migration in db/migrate but nothing's there. I also tried checking out different versions of schema.rb but this fixed nothing.

Since I'm running using docker, and even though, my files are attached to a volume, I tried using docker-compose build before running again to make sure that the migration files are udpated. Again fixed nothing.

Any ideas on how this can be fixed?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source