aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/destroy
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin/destroy')
-rw-r--r--railties/bin/destroy8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/bin/destroy b/railties/bin/destroy
new file mode 100644
index 0000000000..6c1848ce1e
--- /dev/null
+++ b/railties/bin/destroy
@@ -0,0 +1,8 @@
+#!/usr/local/bin/ruby
+require File.dirname(__FILE__) + '/../config/environment'
+require 'rails_generator'
+require 'rails_generator/simple_logger'
+require 'rails_generator/scripts/destroy'
+
+Rails::Generator::Base.logger = Rails::Generator::SimpleLogger.new(STDOUT)
+Rails::Generator::Scripts::Destroy.new.run(ARGV)