diff options
| author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-19 21:10:53 +0530 |
|---|---|---|
| committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-20 09:19:19 +0530 |
| commit | 11c34d8ef44b95b3989cb8376af09842293c892c (patch) | |
| tree | cc169fd1045bc1862f415fded1bf59e6e7359d9c /guides/source | |
| parent | 64ef5e2f9e854a7f988227d629a699f11a998b17 (diff) | |
| download | rails-11c34d8ef44b95b3989cb8376af09842293c892c.tar.gz rails-11c34d8ef44b95b3989cb8376af09842293c892c.tar.bz2 rails-11c34d8ef44b95b3989cb8376af09842293c892c.zip | |
Replaced usage of where.delete/destroy_all with delete/destroy_by
Diffstat (limited to 'guides/source')
| -rw-r--r-- | guides/source/active_record_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 4cf4111bf0..271d94c597 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -314,7 +314,7 @@ method: ```ruby # find and delete all users named David -User.where(name: 'David').destroy_all +User.destroy_by(name: 'David') # delete all users User.destroy_all |
