Fixed issue 77 relating to migrations.
Merge pull request #79 from garry-cairns/master

Fixed issue 77 relating to migrations.