id(); $table->unsignedBigInteger('price'); $table->unsignedBigInteger('product_id'); $table->timestamps(); $table->foreign('product_id') ->references('id')->on('products') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('prices'); } };