I have "author" and "book" tables combined in has_many: through the table "author_book"
As far as I can tell, there is no purpose for the primary key field: id in the table "author_book" ... but before I dedicate this idea, I just wanted to confirm. So, is there a reason for storing the id column in the has_many file: through the table?
Thanks in advance...
ruby ruby-on-rails database-design primary-key has-many-through
Plankton
source share