public function run() { /****************************************************************************** * --- Rangos Posibles --- ******************************************************************************/ $range = Range::find(1); $range->description = 'Necesita de su atención especial'; $range->min = '6.0'; $range->max = '19.0'; $range->save(); Range::create(array('description' => 'Tiempo para mejorar', 'min' => '20.0', 'max' => '25.0')); Range::create(array('description' => 'Habilidades excelentes', 'min' => '26.0', 'max' => '30.0')); /****************************************************************************** * --- Rangos por Escala --- ******************************************************************************/ // Nota: Omitimos el (1, 1) por que ya se encuentra registrado en la BD a la fecha // de creación de este Seeder // Auto Confianza ScaleRange::create(array('idScale' => '1', 'idRange' => '2')); ScaleRange::create(array('idScale' => '1', 'idRange' => '3')); // Control Afrontamiento Negativo ScaleRange::create(array('idScale' => '2', 'idRange' => '1')); ScaleRange::create(array('idScale' => '2', 'idRange' => '2')); ScaleRange::create(array('idScale' => '2', 'idRange' => '3')); // Control Atencional ScaleRange::create(array('idScale' => '3', 'idRange' => '1')); ScaleRange::create(array('idScale' => '3', 'idRange' => '2')); ScaleRange::create(array('idScale' => '3', 'idRange' => '3')); // Control Visual Imaginativo ScaleRange::create(array('idScale' => '4', 'idRange' => '1')); ScaleRange::create(array('idScale' => '4', 'idRange' => '2')); ScaleRange::create(array('idScale' => '4', 'idRange' => '3')); // Nivel Motivación ScaleRange::create(array('idScale' => '5', 'idRange' => '1')); ScaleRange::create(array('idScale' => '5', 'idRange' => '2')); ScaleRange::create(array('idScale' => '5', 'idRange' => '3')); // Control Afrontamiento Positivo ScaleRange::create(array('idScale' => '6', 'idRange' => '1')); ScaleRange::create(array('idScale' => '6', 'idRange' => '2')); ScaleRange::create(array('idScale' => '6', 'idRange' => '3')); // Control Autoestima ScaleRange::create(array('idScale' => '7', 'idRange' => '1')); ScaleRange::create(array('idScale' => '7', 'idRange' => '2')); ScaleRange::create(array('idScale' => '7', 'idRange' => '3')); }