Commit 6463c4db417324b6c9006e68736b31453167ce77
1 parent
b15c371e
Exists in
master
Optimize script
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
script/process_merit_rules.rb
@@ -30,7 +30,7 @@ end | @@ -30,7 +30,7 @@ end | ||
30 | 30 | ||
31 | if ARGV.length>0 && ARGV[0] == 'destroy_old' | 31 | if ARGV.length>0 && ARGV[0] == 'destroy_old' |
32 | puts "Destroy all merit actions" | 32 | puts "Destroy all merit actions" |
33 | - Merit::Action.destroy_all | 33 | + Merit::Action.delete_all |
34 | 34 | ||
35 | count = Person.count | 35 | count = Person.count |
36 | Person.all.each.with_index(1) do |person, i| | 36 | Person.all.each.with_index(1) do |person, i| |