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
|
||||
```
|
||||
|
||||
If you'd like to delete several records in bulk, you may use `destroy_all`
|
||||
method:
|
||||
If you'd like to delete several records in bulk, you may use `destroy_by`
|
||||
or `destroy_all` method:
|
||||
|
||||
```ruby
|
||||
# find and delete all users named David
|
||||
|
|
Loading…
Reference in a new issue