| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 28 | 
| Code Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 14 | public function up()  | 
            ||
| 15 | 	{ | 
            ||
| 16 | 		Schema::create('skill_declarations', function(Blueprint $table) | 
            ||
| 17 | 		{ | 
            ||
| 18 | 			$table->increments('id'); | 
            ||
| 19 | 			$table->integer('skill_id')->unsigned(); | 
            ||
| 20 | 			$table->integer('skill_status_id')->unsigned()->nullable(); | 
            ||
| 21 | 			$table->integer('skill_level_id')->unsigned()->nullable(); | 
            ||
| 22 | 			$table->text('description')->nullable(); | 
            ||
| 23 |             $table->integer('applicant_id')->unsigned(); | 
            ||
| 24 | $table->timestamps();  | 
            ||
| 25 | });  | 
            ||
| 26 | |||
| 27 |         Schema::create('skill_statuses', function(Blueprint $table) | 
            ||
| 28 | 		{ | 
            ||
| 29 | 			$table->increments('id'); | 
            ||
| 30 | 			$table->string('name'); | 
            ||
| 31 | $table->timestamps();  | 
            ||
| 32 | });  | 
            ||
| 33 | |||
| 34 |         Schema::table('skill_declarations', function(Blueprint $table) | 
            ||
| 35 | 		{ | 
            ||
| 36 |             $table->foreign('applicant_id')->references('id')-> | 
            ||
| 37 |                 on('applicants')->onUpdate('CASCADE')->onDelete('CASCADE'); | 
            ||
| 38 |             $table->foreign('skill_status_id')->references('id')-> | 
            ||
| 39 |                 on('skill_statuses')->onUpdate('CASCADE')->onDelete('NO ACTION'); | 
            ||
| 40 |             $table->foreign('skill_level_id')->references('id')-> | 
            ||
| 41 |                 on('skill_levels')->onUpdate('CASCADE')->onDelete('NO ACTION'); | 
            ||
| 42 | });  | 
            ||
| 57 |