rails/rails — pull request #17759 by derekprior (2014-11-25 02:32:43+00:00)
Title: 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.