From b21031052aa12b6b53130b0b05d5fe54489167fa Mon Sep 17 00:00:00 2001 From: Eimantas Likas Date: Thu, 19 Jan 2023 19:05:17 +0200 Subject: [PATCH] Method for reversing migrations (#442) * Method for reversing migrations * Add missing return type declaration --- database/migrations/create_tag_tables.php.stub | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/database/migrations/create_tag_tables.php.stub b/database/migrations/create_tag_tables.php.stub index 7fd3557..5925c6c 100644 --- a/database/migrations/create_tag_tables.php.stub +++ b/database/migrations/create_tag_tables.php.stub @@ -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'); + } +};