From 1eebfc9f66149020efe23a620da110424e5a5c33 Mon Sep 17 00:00:00 2001 From: Akira Matsuda & Yukiko Kawamoto Date: Fri, 13 Sep 2013 18:16:02 +0900 Subject: [PATCH] Missing destroy command --- railties/lib/rails/commands/commands_tasks.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/railties/lib/rails/commands/commands_tasks.rb b/railties/lib/rails/commands/commands_tasks.rb index 11524c4ef5..59d2a0793e 100644 --- a/railties/lib/rails/commands/commands_tasks.rb +++ b/railties/lib/rails/commands/commands_tasks.rb @@ -51,6 +51,10 @@ EOT generate_or_destroy(:generate) end + def destroy + generate_or_destroy(:destroy) + end + def console require_command!("console") options = Rails::Console.parse_arguments(argv)