/**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::table('correlations', function (Blueprint $table) {
         //
     });
     $batches = [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009];
     $allStudents = [];
     $colleges = College::select('unitid')->get();
     foreach ($colleges as $college) {
         $collegeid = $college->unitid;
         foreach ($batches as $batch) {
             $allStudents[$batch] = Studentterm::getBatchStudentsCollege($batch * 100000, $collegeid);
         }
         $this->seedHighGrades($batches, $allStudents, $collegeid);
     }
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     $batches = [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009];
     $allStudents = [];
     $colleges = College::select('unitid')->get();
     foreach ($colleges as $college) {
         $collegeid = $college->unitid;
         foreach ($batches as $batch) {
             $allStudents[$batch] = Studentterm::getBatchStudentsCollege($batch * 100000, $collegeid);
         }
         $this->seedEmployment($batches, $allStudents, $collegeid);
         $this->seedGrades($batches, $allStudents, $collegeid);
         $this->seedStbracket($batches, $allStudents, $collegeid);
         $this->seedRegion($batches, $allStudents, $collegeid);
     }
 }