1
0
Fork 0
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:
Abhay Nikam 2019-02-20 19:40:16 +05:30
parent ceed0aa2e0
commit 42957cafcd

View file

@ -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