rubysherpas / r4ia

A place to file issues for Rails 4 in Action
2 stars 0 forks source link

v18 p161 - foriegn keys in Rails 4.2 #15

Closed nimrody closed 9 years ago

nimrody commented 9 years ago

It seems like 4.2 generates the "add_foreign_key" automatically when you use the ":references" qualifier. So both Listing 5.3 and the note following it are not entirely accurate.

radar commented 9 years ago

I believe this has been updated in the most recent version of the text that we have on GitHub. A new release will be out shortly.

Thanks for reporting this!