AddPolymorphicColumnsToUploads::down PHP Method

down() public method

Reverse the migrations.
public down ( ) : void
return void
    public function down()
    {
        Schema::table('uploads', function (Blueprint $table) {
            $table->dropIndex('uploadable_index');
        });
        Schema::table('uploads', function (Blueprint $table) {
            $table->dropColumn('uploadable_id');
            $table->dropColumn('uploadable_type');
        });
    }
AddPolymorphicColumnsToUploads