The EF Core tools version '3.1.1' is older than that of the runtime '3.1.4'. Update the tools for the latest features and bug fixes.

In order to update EF Core tools on Ubuntu 18.04 from the terminal simply run the following  command:

dotnet tool update --global dotnet-ef