The cause is a value in the Model column of the __MigrationHistory table. This typically happens if you insert rows in their via a SQL script instead of using UPDATE-DATABASE within Visual Studio's Package Manager.