From c604d30929cc60ac38bc10f764c582e9893805c6 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 3 Aug 2016 12:13:19 +0100 Subject: [PATCH] Create a DeletedCandidate for the merged candidate --- scripts/merge-candidates.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/merge-candidates.rb b/scripts/merge-candidates.rb index 32084ed..6726a61 100644 --- a/scripts/merge-candidates.rb +++ b/scripts/merge-candidates.rb @@ -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:"