unsignedInteger('external_service_id')->nullable(); $table->foreign('external_service_id') ->references('id') ->on('external_services'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('storages', function (Blueprint $table) { $table->dropForeign('storages_external_service_id_foreign'); $table->dropColumn('external_service_id'); }); } }