Generic-user-small Devin Walters 6 posts Looking at this migration, we can see why it’s hard for Active Record to divine the relationships between tables automatically.

ActiveRecord is good, but can it “divine” things?

 
Samr_small_small Sam Ruby 109 posts

I’m a recent addition to the authors of this book, and that particular text predated my joining the effort; but I must say that part of the appeal of this book to me is its playful language. Reading the definition of divine (in particular v.tr. 2) and divination (again, 2nd definition), I’m inclined to leave it as is.

If the text talked about ActiveRecord being able to divine something, I would agree as that come off as being a bit arrogant, but as it stands it implies that not even a god could consistently guess right.

 
Dave_8_trans_small Dave Thomas Administrator 36 posts

Think of it in the sense of “divining rod”

 
Generic-user-small Devin Walters 6 posts

Ah-ha! I didn’t mean to nitpick, but I found myself reading it over and over to try and figure out if it was intentional. In part, my OCD is to blame. You might consider this common programming affectation of note. I certainly do. But, no matter—Thanks for a great book.

Cheers,
D

4 posts, 3 voices