user01 = User.create( username: "Albert", password_hash: "Albert")
user02 = User.create( username: "Bertha", password_hash: "Bertha")

survey01 = Survey.create(title: "Test Survey 01", description: "A test survey.", user_id: user01.id )

survey01.questions.create(text: "What is your favorite color?")
survey01.questions.create( text: "What is your favorite number?")
survey01.questions.create( text: "How many meals do you eat a day?")

survey01.questions[0].choices.create(text: "red")
survey01.questions[1].choices.create(text: "3")
survey01.questions[2].choices.create(text: "2")

Response.create(user_id: user01.id, survey_id: survey01.id)


user01 = User.create( username: "Albert", password: "Albert")
user02 = User.create( username: "Bertha", password: "Bertha")

survey01 = Survey.create(title: "Test Survey 01", description: "A test survey.", user_id: user01.id )

survey01.questions.create(text: "What is your favorite color?")
survey01.questions.create( text: "What is your favorite number?")
survey01.questions.create( text: "How many meals do you eat a day?")

survey01.questions[0].choices.create(text: "red")
survey01.questions[0].choices.create(text: "blue")
survey01.questions[1].choices.create(text: "3")
survey01.questions[1].choices.create(text: "7")
survey01.questions[2].choices.create(text: "2")
survey01.questions[2].choices.create(text: "5")

Response.create(user_id: user01.id, survey_id: survey01.id)


Fix seed data: password_hash to password. Add additional question choices to test seed.
Fix seed data: password_hash to password. Add additional question choices to test seed.
