| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 16 | public function up(): void  | 
            ||
| 17 |     { | 
            ||
| 18 |         Schema::create(config('rinvex.pages.tables.pageables'), function (Blueprint $table) { | 
            ||
| 19 | // Columns  | 
            ||
| 20 |             $table->integer('page_id')->unsigned(); | 
            ||
| 21 |             $table->morphs('pageable'); | 
            ||
| 22 | $table->timestamps();  | 
            ||
| 23 | |||
| 24 | // Indexes  | 
            ||
| 25 | $table->unique(['page_id', 'pageable_id', 'pageable_type'], 'pageables_ids_type_unique');  | 
            ||
| 26 |             $table->foreign('page_id')->references('id')->on(config('rinvex.pages.tables.pages')) | 
            ||
| 27 |                   ->onDelete('cascade')->onUpdate('cascade'); | 
            ||
| 28 | });  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 41 |