Running and Destroying with Rails
I’ve been developing with Rails for years, and only recently discovered the rails destroy command. Like magic, it allows you to undo a previous rails generate command, for example when you make a typo or forget a column when generating a model or scaffold. In this post I explain how to use rails destroy, as well as another lesser-known command, rails runner.
Post a comment