| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('references', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('name')->nullable(); |
||
| 19 | $table->string('email')->nullable(); |
||
| 20 | $table->integer('relationship_id')->unsigned()->nullable(); |
||
| 21 | $table->text('description')->nullable(); |
||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 24 | |||
| 25 | Schema::table('references', function (Blueprint $table) { |
||
| 26 | $table->foreign('relationship_id')->references('id') |
||
| 27 | ->on('relationships')->onUpdate('CASCADE')->onDelete('NO ACTION'); |
||
| 28 | }); |
||
| 41 |