Explorar el Código

Create a DeletedCandidate for the merged candidate

tags/last-sinatra-version
Adrian Short hace 8 años
padre
commit
c604d30929
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      scripts/merge-candidates.rb

+ 1
- 0
scripts/merge-candidates.rb Ver fichero

@@ -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:"


Cargando…
Cancelar
Guardar