| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | $this->schema->create((new ReactionTotal())->getTable(), function (Blueprint $table) { |
||
| 26 | $table->bigIncrements('id'); |
||
| 27 | $table->unsignedBigInteger('reactant_id'); |
||
| 28 | $table->unsignedBigInteger('count'); |
||
| 29 | $table->decimal('weight', 13, 2); |
||
| 30 | $table->timestamps(); |
||
| 31 | |||
| 32 | $table |
||
| 33 | ->foreign('reactant_id') |
||
| 34 | ->references('id') |
||
| 35 | ->on('love_reactants') |
||
| 36 | ->onDelete('cascade'); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | |||
| 48 |