Skip to content

Commit

Permalink
Method for reversing migrations (#442)
Browse files Browse the repository at this point in the history
* Method for reversing migrations

* Add missing return type declaration
  • Loading branch information
eimantaaas authored Jan 19, 2023
1 parent a23ef9c commit b210310
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion database/migrations/create_tag_tables.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ return new class extends Migration
$table->unique(['tag_id', 'taggable_id', 'taggable_type']);
});
}
}

public function down(): void
{
Schema::dropIfExists('taggables');
Schema::dropIfExists('tags');
}
};

0 comments on commit b210310

Please sign in to comment.