mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Updated the documentation for bulk delete in activerecord
This commit is contained in:
parent
ceed0aa2e0
commit
42957cafcd
1 changed files with 2 additions and 2 deletions
|
@ -309,8 +309,8 @@ user = User.find_by(name: 'David')
|
||||||
user.destroy
|
user.destroy
|
||||||
```
|
```
|
||||||
|
|
||||||
If you'd like to delete several records in bulk, you may use `destroy_all`
|
If you'd like to delete several records in bulk, you may use `destroy_by`
|
||||||
method:
|
or `destroy_all` method:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# find and delete all users named David
|
# find and delete all users named David
|
||||||
|
|
Loading…
Reference in a new issue