increments('id'); $table->integer('user_id')->index(); $table->integer('watchable_id'); $table->string('watchable_type', 100); $table->tinyInteger('level', false, true)->index(); $table->timestamps(); $table->index(['watchable_id', 'watchable_type'], 'watchable_index'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('watches'); } };