In Rails there is a destroy command that acts as the evil twin of generate:
rails generate scaffold Post
rails destroy scaffold Post
Let's do the same thing in Redwood. The generators themselves just return a list of files/routes so we should be able to use those lists in a destroy process to remove the files created and match and remove the routes.
In Rails there is a
destroycommand that acts as the evil twin ofgenerate:Let's do the same thing in Redwood. The generators themselves just return a list of files/routes so we should be able to use those lists in a
destroyprocess to remove the files created and match and remove the routes.