Mirek Surma
Mirek Surma

Reputation: 148

Remove ecto migration from the plan

I generated a migration by

mix ecto.gen.migration migration_name

I did not run the migration and decided not to run it at all. I deleted the migration file from priv folder, however, it still appears in the migration plan. Is there any way how to delete such a migration?

Upvotes: 2

Views: 2318

Answers (1)

narrowtux
narrowtux

Reputation: 703

If you execute a migration (upwards), ecto will create a new entry in the schema_migrations table of your database.

The entry for the missing file is probably still there.

Upvotes: 2

Related Questions