Migrate registration attributes to questions
This commit is contained in:
parent
08a47339a4
commit
59f2b636c5
9 changed files with 401 additions and 15 deletions
|
|
@ -21,9 +21,10 @@ QuestionType.create(title: 'Multiple Choice')
|
|||
answer_yes = Answer.create(title: 'Yes')
|
||||
answer_no = Answer.create(title: 'No')
|
||||
|
||||
questions_yes_no = ['Do you need handicapped access to the venue?',
|
||||
'Are you attending with partner?', 'Will you attend the social event(s)?',
|
||||
'Will you stay at suggested hotel?']
|
||||
questions_yes_no = ['Do you need handicapped access?',
|
||||
'Will you attend with a partner?',
|
||||
'Will you attend the social event(s)?',
|
||||
'Will you stay at one of the suggested hotels?']
|
||||
|
||||
questions_yes_no.each do |i|
|
||||
q = Question.create(title: i, question_type_id: qtype_yesno.id, global: true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue