summaryrefslogtreecommitdiff
path: root/script/clean.rb
diff options
context:
space:
mode:
Diffstat (limited to 'script/clean.rb')
-rw-r--r--script/clean.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/clean.rb b/script/clean.rb
new file mode 100644
index 0000000..02dcd22
--- /dev/null
+++ b/script/clean.rb
@@ -0,0 +1,9 @@
+ENV['RAILS_ENV'] ||= "development"
+require_relative '../config/environment.rb'
+
+p User.count
+User.destroy_all
+p Category.count
+Category.destroy_all
+p Cake.count
+Cake.destroy_all