backlogs/redmine_backlogs — pull request #758 by patrickatamaniuk (2012-12-16 16:32:17+00:00)
Title: do not assume that RbIssueHistory does not exist when performing rebuild...

..._history
I don't know if thats the right thing to do, though. But the migration at least passes.

RbIssueHistory.rebuild_history seems to have sideeffects, so that other issues get a issues_history association when performing the rebuild.
I got a Story with a Task. The task gets first passed to rebuild_history, and affects it's story, which get the history assoc before the task is finished. Then later, the Story gets passed to rebuild_history, and the unique constraint fails as noted in #754.