Entity Framework Core: Remove Last Migration

Last modified: 04 December 2024

This command removes the last migration, rolling back the code changes that were done for it.

Under the hood, JetBrains Rider will apply the dotnet ef migrations remove command with the corresponding arguments. Make sure that dotnet ef global tool is installed on your machine.

Below is the list of options for the Remove Last Migration command.