| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function down() |
||
| 32 | { |
||
| 33 | Schema::table('application_reviews', function (Blueprint $table) { |
||
| 34 | $table->integer('review_decision_id')->unsigned(); |
||
| 35 | $table->string('reviewer')->nullable(); |
||
| 36 | }); |
||
| 37 | |||
| 38 | Schema::create('review_decisions', function (Blueprint $table) { |
||
| 39 | $table->increments('id'); |
||
| 40 | $table->string('name'); |
||
| 41 | $table->timestamps(); |
||
| 42 | }); |
||
| 43 | |||
| 44 | Schema::table('application_reviews', function (Blueprint $table) { |
||
| 45 | $table->foreign('review_decision_id')->references('id')->on('review_decisions')->onUpdate('CASCADE')->onDelete('NO ACTION'); |
||
| 46 | }); |
||
| 49 |