unsignedInteger('storage_id'); $table->foreign('storage_id') ->references('id')->on('storages') ->onDelete('no action'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('albums', function (Blueprint $table) { $table->dropForeign('albums_storage_id_foreign'); $table->dropColumn('storage_id'); }); } }