Skip to content

Commit

Permalink
noActionOnDelete() added to migrations.md (#9908)
Browse files Browse the repository at this point in the history
* add noActionOnDelete() to migrations.md

* Update migrations.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
gisuNasr and taylorotwell authored Sep 22, 2024
1 parent b744d06 commit d41ad21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,7 @@ An alternative, expressive syntax is also provided for these actions:
| `$table->cascadeOnDelete();` | Deletes should cascade. |
| `$table->restrictOnDelete();` | Deletes should be restricted. |
| `$table->nullOnDelete();` | Deletes should set the foreign key value to null. |
| `$table->noActionOnDelete();` | Prevents deletes if child records exist. |
</div>
Expand Down

0 comments on commit d41ad21

Please sign in to comment.