我使用以下命令在Buffalo中生成了一个资源:
buffalo g resource <name> <flags>
我已经意识到我在这个资源生成中犯了一个错误,我该如何
我在Buffalo的文档或buffalo g resource --help
消息中没有看到这一点。
答案 0 :(得分:4)
You could use the destroy cli, fortunately there is a destroy resource
command to help, you can do something like:
buffalo d resource <name>
And it will guide you on which things to remove, or you could pass the --yes flag to simply remove all associated files. p.e:
buffalo d resource <name> --yes
or
buffalo d resource <name> -y