Commit 1883263db01940e7af06711921e7dc654715ef1c
1 parent
9570ae12
Exists in
master
and in
1 other branch
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 | 26 | end |
27 | 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 | 38 | Merit.observers << 'ProcessObserver' |
39 | 39 | ... | ... |