diff options
author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-20 19:40:16 +0530 |
---|---|---|
committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-20 19:41:09 +0530 |
commit | 42957cafcd2607dc24ba17f3dc13bb9533c5c80d (patch) | |
tree | 91355769aea1be1adcba31edbebfb61dbb438628 /guides | |
parent | ceed0aa2e0e45523496130e5a5c4a4f032e8cd2a (diff) | |
download | rails-42957cafcd2607dc24ba17f3dc13bb9533c5c80d.tar.gz rails-42957cafcd2607dc24ba17f3dc13bb9533c5c80d.tar.bz2 rails-42957cafcd2607dc24ba17f3dc13bb9533c5c80d.zip |
[ci skip] Updated the documentation for bulk delete in activerecord
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_basics.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 271d94c597..5c1de97aa8 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -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 |