mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: Add cypress to codebase
This commit is contained in:
parent
05f52cfbf8
commit
a4c68a4055
36 changed files with 3623 additions and 544 deletions
20
app/lib/seeders/journey.rb
Normal file
20
app/lib/seeders/journey.rb
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
module Seeders
|
||||
class Journey
|
||||
def seed
|
||||
school = School.first
|
||||
academic_year = AcademicYear.last
|
||||
SurveyItem.all.each do |survey_item|
|
||||
20.times do |i|
|
||||
SurveyItemResponse.create(response_id: "#{i}#{survey_item.survey_item_id}", school:, academic_year:,
|
||||
likert_score: 5, survey_item:, grade: 1)
|
||||
end
|
||||
end
|
||||
|
||||
School.all.each do |school|
|
||||
AcademicYear.all.each do |academic_year|
|
||||
Respondent.create(school:, academic_year:, one: 20)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue