task-3 (Users) #3

Merged
klllst merged 7 commits from feature/task-3 into develop 2024-05-06 12:01:33 +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
{
Schema::table('students', function (Blueprint $table) {
$table->foreignId('grade_id')->constrained('grades');
$table->foreignId('grade_id')->constrained('grades')->onDelete('cascade');
});
}