소스 검색

Create a DeletedCandidate for the merged candidate

tags/last-sinatra-version
Adrian Short 9 년 전
부모
커밋
c604d30929
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      scripts/merge-candidates.rb

+ 1
- 0
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:"


불러오는 중...
취소
저장