rails-destroy

Destroy Rails resources.

TLDR

List all available generators to destroy

$ rails destroy
copy


Destroy a model named Post
$ rails destroy model [Post]
copy


Destroy a controller named Posts
$ rails destroy controller [Posts]
copy


Destroy a migration that creates Posts
$ rails destroy migration [CreatePosts]
copy


Destroy a scaffold for a model named Post
$ rails destroy scaffold [Post]
copy

Copied to clipboard