Pārlūkot izejas kodu

Create a DeletedCandidate for the merged candidate

tags/last-sinatra-version
Adrian Short pirms 8 gadiem
vecāks
revīzija
c604d30929
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      scripts/merge-candidates.rb

+ 1
- 0
scripts/merge-candidates.rb Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt