Bläddra i källkod

Create a DeletedCandidate for the merged candidate

tags/last-sinatra-version
Adrian Short 8 år sedan
förälder
incheckning
c604d30929
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. +1
    -0
      scripts/merge-candidates.rb

+ 1
- 0
scripts/merge-candidates.rb Visa fil

@@ -41,6 +41,7 @@ repository(:default).adapter.select("
")

# Delete the loser candidate
DeletedCandidate.create(:old_candidate_id => loser, :candidate_id => winner)
Candidate.get(loser).destroy

puts "Merge completed. Here is the merged candidate:"


Laddar…
Avbryt
Spara