Closes #1117
Use a more reasonable index name for join table unique key
Sorry @mickhansen :(
Merge pull request #1305 from janmeier/1117fix

Change the way PKs for through table are handled (Closes #1117)