| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 14 | 
| Lines | 18 | 
| Ratio | 100 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 14 | public function up() | ||
| 15 |     { | ||
| 16 |         Schema::create('text_blocks', function (Blueprint $table) { | ||
| 17 |             $table->increments('id'); | ||
| 18 |             $table->string('name')->index(); | ||
| 19 |             $table->text('text'); | ||
| 20 |             $table->text('formatted_text'); | ||
| 21 |             $table->integer('order'); | ||
| 22 |             $table->integer('project_id')->nullable()->unsigned()->index(); | ||
| 23 |             $table->timestamp('deleted_at')->nullable(); | ||
| 24 | $table->timestamps(); | ||
| 25 | |||
| 26 |             $table->foreign('project_id') | ||
| 27 |               ->references('id') | ||
| 28 |               ->on('projects') | ||
| 29 |               ->onDelete('cascade'); | ||
| 30 | }); | ||
| 31 | } | ||
| 32 | |||
| 43 |