prod #7
@ -12,7 +12,7 @@ return new class extends Migration
|
|||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('students', function (Blueprint $table) {
|
Schema::table('students', function (Blueprint $table) {
|
||||||
$table->foreignId('grade_id')->constrained('grades');
|
$table->foreignId('grade_id')->constrained('grades')->onDelete('cascade');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user