This is worng because it is the name of the foreign key constraint and not the name of the index to be created under the hood. What you need to do is call `$theJoinTable->addIndex()` before adding the foreign key and do not pass the index names as foreign key name when adding the foreign key.