diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-28 01:03:13 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-28 01:53:01 +0900 |
commit | 8e123847e8ba0a59aafa708950a4887a669311b4 (patch) | |
tree | 0569dae364347c8a1c5f204d46856f7588d0f21b /activerecord/lib/arel/predications.rb | |
parent | 140ec68c0dc157d1b3cd481f48dd403b58c74923 (diff) | |
download | rails-8e123847e8ba0a59aafa708950a4887a669311b4.tar.gz rails-8e123847e8ba0a59aafa708950a4887a669311b4.tar.bz2 rails-8e123847e8ba0a59aafa708950a4887a669311b4.zip |
Make `update_all` preparable
Before:
```
Pet Update All (0.8ms) UPDATE `pets` LEFT OUTER JOIN `toys` ON `toys`.`pet_id` = `pets`.`pet_id` SET `pets`.`name` = 'Bob' WHERE `toys`.`name` = ? [["name", "Bone"]]
```
After:
```
Pet Update All (1.1ms) UPDATE `pets` LEFT OUTER JOIN `toys` ON `toys`.`pet_id` = `pets`.`pet_id` SET `pets`.`name` = ? WHERE `toys`.`name` = ? [["name", "Bob"], ["name", "Bone"]]
```
Diffstat (limited to 'activerecord/lib/arel/predications.rb')
0 files changed, 0 insertions, 0 deletions