Commit 1883263db01940e7af06711921e7dc654715ef1c

Authored by Leandro Santos
1 parent 9570ae12

should not destroy existing data

Showing 1 changed file with 8 additions and 8 deletions   Show diff stats
script/process_merit_rules.rb
@@ -26,14 +26,14 @@ def create_action(obj, index, count) @@ -26,14 +26,14 @@ def create_action(obj, index, count)
26 end 26 end
27 end 27 end
28 28
29 -puts "Destroy all merit actions"  
30 -Merit::Action.destroy_all  
31 -  
32 -count = Person.count  
33 -Person.all.each.with_index(1) do |person, i|  
34 - puts "#{i}/#{count} Remove sash from #{person.identifier}"  
35 - person.sash.destroy unless person.sash.nil?  
36 -end 29 +#puts "Destroy all merit actions"
  30 +#Merit::Action.destroy_all
  31 +#
  32 +#count = Person.count
  33 +#Person.all.each.with_index(1) do |person, i|
  34 +# puts "#{i}/#{count} Remove sash from #{person.identifier}"
  35 +# person.sash.destroy unless person.sash.nil?
  36 +#end
37 37
38 Merit.observers << 'ProcessObserver' 38 Merit.observers << 'ProcessObserver'
39 39