diff --git a/app/DiscoverCategoryHashtag.php b/app/DiscoverCategoryHashtag.php new file mode 100644 index 000000000..ff5372c23 --- /dev/null +++ b/app/DiscoverCategoryHashtag.php @@ -0,0 +1,13 @@ +bigIncrements('id'); + $table->bigInteger('discover_category_id')->unsigned()->index(); + $table->bigInteger('hashtag_id')->unsigned()->index(); + $table->unique(['discover_category_id', 'hashtag_id'], 'disc_hashtag_unique'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('discover_category_hashtags'); + } +}