[size=2]Your test database have a same tables which you are using in your development database.[/size]
Since, MyModel class related table is present in your dev database. And please also check console.php database settings which database you are accessing there.
It’s by design. You should never use model in migrations since model code can be changed slightly while one should be able to run migrations from the very first (where model was different) to the current.
PHP Error[2]: include(C:\XAMPP\websites\website\protected\models\Content.php):
failed to open stream: No such file or directory
in file C:\XAMPP\websites\yii\framework\YiiBase.php at line 404
Following previous one. How to deal with the situation like above, that you have a constant defined in your model and you want to use it in migration?