Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Updating the McQuestion Seed Data to Use the Association
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Feb 23, 2020
1 parent 0251b59 commit 92b5014
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,49 @@
)

q1 = McQuestion.create!(
quiz: quiz1,
question: 'What does the M in MVC stand for?',
answer: 'Model',
distractor_1: 'Media',
distractor_2: 'Mode'
)

q2 = McQuestion.create!(
quiz: quiz1,
question: 'What does the V in MVC stand for?',
answer: 'View',
distractor_1: 'Verify',
distractor_2: 'Validate'
)

q3 = McQuestion.create!(
quiz: quiz1,
question: 'What does the C in MVC stand for?',
answer: 'Controller',
distractor_1: 'Create',
distractor_2: 'Code'
)

q4 = McQuestion.create!(
quiz: quiz2,
question: 'Which hash is primarily used for one way message passing from the controller to the view?',
answer: 'flash',
distractor_1: 'session',
distractor_2: 'params'
)

q5 = McQuestion.create!(
quiz: quiz2,
question: 'In which folder are image assets for the QuizMe app stored?',
answer: 'quiz-me/app/assets/images',
distractor_1: 'quiz-me',
distractor_2: 'quiz-me/images'
)

q6 = McQuestion.create!(
quiz: quiz2,
question: 'Which standard RESTful controller action is used to remove records?',
answer: 'destroy',
distractor_1: 'delete',
distractor_2: 'remove'
)

0 comments on commit 92b5014

Please sign in to comment.