From 6463c4db417324b6c9006e68736b31453167ce77 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 18 Feb 2016 18:40:49 -0300 Subject: [PATCH] Optimize script --- script/process_merit_rules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/process_merit_rules.rb b/script/process_merit_rules.rb index 95abf46..d527455 100755 --- a/script/process_merit_rules.rb +++ b/script/process_merit_rules.rb @@ -30,7 +30,7 @@ end if ARGV.length>0 && ARGV[0] == 'destroy_old' puts "Destroy all merit actions" - Merit::Action.destroy_all + Merit::Action.delete_all count = Person.count Person.all.each.with_index(1) do |person, i| -- libgit2 0.21.2