Add tests to cover scenario of migration ending up in dirty state
Add tests to cover scenario of migration ending up in dirty state

- If migrations fail mid way, state should be recorded as dirty and next
time atc process is started migrations table should be truncated and
it should be initiated from beginning.

concourse/concourse,concourse/concourse,concourse/concourse,concourse/concourse,concourse/concourse