We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e9da8 commit d3c7c83Copy full SHA for d3c7c83
app/services/survey_generator.rb
@@ -13,4 +13,12 @@ def self.generate_for_user(user)
13
14
survey
15
end
16
+ def self.create_intake_survey_for_user(user)
17
+ survey = Survey.create!(user: user)
18
+ # TODO: Will need to decide once we get 'finalized' questions which ones we want to be on the intake survey
19
+ # For now, I'm just gonna grab all of them
20
+ Question.each do |question|
21
+ Answer.create!(question_id: question.id, survey: survey)
22
+ end
23
24
0 commit comments