Hello all,
I am in the middle of learning Elixir / Phoenix and doing a project in the Pragmatic Studio project for creating a schema/db for products. However I messed up somewhere and now I am getting this.
migrations can't be executed, migration name create_products is duplicated
Repo: Pento.Repo
Status Migration ID Migration Name
--------------------------------------------------
down 20231219221534 create_users_auth_tables
down 20231221215943 create_products
down 20231228195803 create_products
I tried dropping the database, recreating it, migrating it but still getting the same result. Any ideas?
The database for Pento.Repo has been dropped
The database for Pento.Repo has been created
** (Ecto.MigrationError) migrations can't be executed, migration name create_products is duplicated
You have two migrations called create_products, you need to delete one of them.
While the file names may be different due to the prefixed timestamp, migrations are generated into modules which doesn’t include the timestamp. This means you have two modules named MyApp.Repo.CreateProducts which is not allowed in Elixir.