I am creating a quiz in Rails and I am drawing a blank on my associations.

I say I have three tables that I know are going to be there.

```
users
   |___id
   |___name

quizzes
   |___id
   |___user_id

questions
   |___id
   |___question
   |___poss_answer_one
   |___poss_answer_two
   |___poss_answer_three
   |___answer
   |___test_version

```

This is what I started with. The functionality of the site is as follows:

A user can select questions from up to three categories to add to their active quiz (quizzes). So a user will only have one quiz at a time because when they finish or restart a new one, the entry into the quizzes table will be re-created.

So the user has\_one quiz and quizzes belongs\_to users.

Next I am assuming that a quiz has\_many questions and because questions are re-usable and can be included in many different quizzes, would it require a join table?

If so would it be 

```
quiz_questions
   |___id
   |___question_id
   |___quiz_id

```

In that case it would require a has\_many through.

Once I get this done I know how to model the associations, I am just confusing myself because of the wording.