En revisión

Generate Migration from this version unavailable at times

Philipp Albrecht hace 4 años actualizado por Adam Mościcki hace 4 años 1

Sometimes the "Generate Migration from this version" is not available without giving a clue of why that is. Please advise. 

Image 955

En revisión


If you hold a mouse on that option you would see:

Models containing errors caused unexpected behavior while migrating.
I agree that our way of showing the message is not obvious, we will rediscuss it.

The best way to fix the error is:
1. Choose option: "Create new model from this version".
2. Fix errors.
3. User new model as a source of migration.

Hope this helps,