prod #7

Merged
klllst merged 40 commits from feature/task-7 into master 2024-06-16 12:25:52 +04:00
Showing only changes of commit f13fb375e7 - Show all commits

View File

@ -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');
}); });
} }