Make migrations work on old data
Merge pull request #681 from loomio/bug/fix-old-migrations

I needed these changes to migrate old data