Search code examples
migrationcode-first

How can I disable migrations like that never enabled


I need to disable migrations on my code first project. I just runenable-migrations command. But now I need to disable migrations on my project. I need another changes to my project and after these I will enable migrations because now I got errors on my project.


Solution

  • It's quite easy. Just delete the Migrations folder. Be advised that this is not the same as dropping the existing database and creating a new one.