diff options
| author | mo khan <mo@mokhan.ca> | 2013-10-12 07:51:17 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-10-12 07:51:17 -0600 |
| commit | ae199ba5fa26df665e342e110abde85a1360c6fd (patch) | |
| tree | 094902050649a2145b9840648b2c5f39a94ce744 | |
| parent | 7473cf5d3d54c60c1b2ab31e0b8b8e8fce4c14a5 (diff) | |
add clean script to wipe all data from the database.
| -rw-r--r-- | script/clean.rb | 9 |
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 |
