CreateHistoryTables::down PHP Method

down() public method

Reverse the migrations.
public down ( ) : void
return void
    public function down()
    {
        Schema::table('history', function (Blueprint $table) {
            $table->dropForeign('history_type_id_foreign');
            $table->dropForeign('history_user_id_foreign');
        });
        Schema::dropIfExists('history_types');
        Schema::dropIfExists('history');
    }
CreateHistoryTables