I am trying to get a list of all relations "foreign keys" on a model programmatically (key, related object, foreign column name.)...I found ...this other question... which seems to be doing the same thing. But I am unable to get the code in the answer to ...