fix for the migration template
Merge pull request #295 from niclas/uniq-token-index

fix for the migration template