| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create($this->tablePrefix.'profiles', function(Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('name'); |
||
| 19 | $table->text('description')->nullable(); |
||
| 20 | $table->unsignedInteger('domain_id'); |
||
| 21 | $table->timestamps(); |
||
| 22 | $table->softDeletes(); |
||
| 23 | |||
| 24 | // Foreign keys |
||
| 25 | $table->foreign('domain_id') |
||
| 26 | ->references('id')->on($this->tablePrefix.'domains') |
||
| 27 | ->onDelete('cascade'); |
||
| 28 | }); |
||
| 41 |