fix update_journals_for_acts_as_journalized down migration

This is completely based on a PR by @marutosi. Kudos to him.

The only liberty I took was to change the commit message as the original one was not written for the OpenProject context.