Generators add foreign keys on references

If you run a generator such as:

```
rails generate model accounts supplier:references
```

The resulting migration will now add the corresponding foreign key
constraint unless the reference was specified to be polymorphic.
Merge branch 'derekprior-dp-add-foreign-keys-with-generators'

Closes #17759