浏览代码

Create a DeletedCandidate for the merged candidate

tags/last-sinatra-version
Adrian Short 8 年前
父节点
当前提交
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:"


正在加载...
取消
保存