Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('work_experiences', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('role')->nullable(); |
||
19 | $table->string('company')->nullable(); |
||
20 | $table->text('description')->nullable(); |
||
21 | $table->date('start_date')->nullable(); |
||
22 | $table->date('end_date')->nullable(); |
||
23 | $table->integer('applicant_id')->unsigned(); |
||
24 | $table->timestamps(); |
||
25 | }); |
||
26 | |||
27 | Schema::table('work_experiences', function (Blueprint $table) { |
||
28 | $table->foreign('applicant_id')->references('id')-> |
||
29 | on('applicants')->onUpdate('CASCADE')->onDelete('CASCADE'); |
||
30 | }); |
||
43 |