School.destroy_all
healey = School.create(name: "Arthur D Healey")

Homeroom.destroy_all
n = 0
4.times do |n|
  Homeroom.create(name: "10#{n}")
  n += 1
end

Student.destroy_all
McasResult.destroy_all

FIRST_NAMES = [ "Casey", "Josh", "Judith", "Tae", "Kenn" ]
LAST_NAMES = [ "Jones", "Pais", "Hoag", "Pak", "Scott" ]

36.times do
  student = Student.create(FakeStudent.data)
  student.homeroom_id = Homeroom.all.sample.id
  student.save
  result = McasResult.new(FakeMcasResult.data)
  result.update_attributes(student_id: student.id)
  result.save
  result = StarResult.new(FakeStarResult.data)
  result.update_attributes(student_id: student.id)
  result.save
end
School.destroy_all
healey = School.create(name: "Arthur D Healey")

Homeroom.destroy_all
n = 0
4.times do |n|
  Homeroom.create(name: "10#{n}")
  n += 1
end

Student.destroy_all
McasResult.destroy_all

FIRST_NAMES = [ "Casey", "Josh", "Judith", "Tae", "Kenn" ]
LAST_NAMES = [ "Jones", "Pais", "Hoag", "Pak", "Scott" ]

36.times do
  student = Student.create(FakeStudent.data)
  student.homeroom_id = Homeroom.all.sample.id
  student.save
  result = McasResult.new(FakeMcasResult.data)
  result.update_attributes(student_id: student.id)  #DATE TAKEN REPLACES ASSESSMENT BRO
  result.save
end
--- 
+++ 
@@ -19,6 +19,9 @@
   student.homeroom_id = Homeroom.all.sample.id
   student.save
   result = McasResult.new(FakeMcasResult.data)
-  result.update_attributes(student_id: student.id)  #DATE TAKEN REPLACES ASSESSMENT BRO
+  result.update_attributes(student_id: student.id)
+  result.save
+  result = StarResult.new(FakeStarResult.data)
+  result.update_attributes(student_id: student.id)
   result.save
 end
Add fake STAR data to fake student generation
