Finalized many to many relationship
This commit is contained in:
@@ -16,7 +16,8 @@ class BeerListPivot extends Migration
|
||||
Schema::create('beer_list_pivot', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('beer_id')->constrained();
|
||||
$table->foreignId('list_id')->constrained();
|
||||
$table->foreignId('list_id')->constrained('beer_lists');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user