Make migration idempotent

Makes @samjsharpe happy.
Merge pull request #105 from alphagov/idempotent-migration

Make migration idempotent