| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | Schema::create(config('rating.table_name', 'ratings'), function (Blueprint $table) { |
||
| 15 | $table->increments('id'); |
||
| 16 | $table->string('rater_type')->nullable(); |
||
| 17 | $table->integer('rater_id')->nullable(); |
||
| 18 | $table->string('rateable_type'); |
||
| 19 | $table->string('rateable_id'); |
||
| 20 | $table->float('rating', 9, 2); |
||
| 21 | $table->timestamps(); |
||
| 22 | }); |
||
| 33 |