I have these tables:
questions, question_sets.
So it’s along with convention to do:
questions_question_sets.
Right? Next, I have this table:
answers.
Every questions_question_sets has many answers so I need to build a column name as singular. Is it going to be:
1. questions_question_set_id or
2. question_question_set_id?
I guess it should be the 1st but who knows…
TLDR:
Further details in case next person is trying to do something like this:
Based on what you’re trying to do, I’m going to assume a
Questioncan belong to more than oneQuestionSet, and anAnsweris specific to aQuestionwithin a specificQuestionSet(as opposed to what seems logical to me – anAnswerbelongs to aQuestionregardless of whichQuestionSetit’s in).Models
Tables
Associations
Fields