I have an annoying model that I accidentally created that keeps interfering with my cake schema run update
command. how can I destroy this model?
ok, I believe it is just easier to remove model file. I was just curious about cakephp-scripts implementation but it's not reall开发者_开发问答y necessary.
This should be located in
/install-dir
/app
/models
model.php
For comment:
I know Unix.
cd /path/to/your/install-dir/app/models
rm model.php
Obviously you would replace that path with whatever is valid for your install. Depending on your permissions you may need to sudo rm
that as well.
Also: http://www.westwind.com/reference/os-x/commandline/
From command line:
DEL C:\path-to-your-project\app\models\hated-model.php
精彩评论