The schema columns representation changed a while ago but the foreign key add code wasn't updated to match
Merge pull request #302 from iarna/fix-foreign-key-index-detection

The schema index representation of columns being indexed changed a while ago but the foreign key add code wasn't updated to match