Merge pull request #239 from dimagi/stock-migration

add index to domain in DocDomainMapping