diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-17 06:06:21 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-17 09:37:08 +0900 |
commit | 0ad70eb2d063cab577a559f6c3d28e787ca1dca8 (patch) | |
tree | da8193ff9d12a38c826250a50fc98844bf0eb0e0 /activerecord/lib/active_record/aggregations.rb | |
parent | 8ed636511779ed1472f4f88362ded34f61005f4a (diff) | |
download | rails-0ad70eb2d063cab577a559f6c3d28e787ca1dca8.tar.gz rails-0ad70eb2d063cab577a559f6c3d28e787ca1dca8.tar.bz2 rails-0ad70eb2d063cab577a559f6c3d28e787ca1dca8.zip |
Make `truncate_tables` to bulk statements
Before:
```
(16.4ms) TRUNCATE TABLE `author_addresses`
(20.5ms) TRUNCATE TABLE `authors`
(19.4ms) TRUNCATE TABLE `posts`
```
After:
```
Truncate Tables (19.5ms) TRUNCATE TABLE `author_addresses`;
TRUNCATE TABLE `authors`;
TRUNCATE TABLE `posts`
```
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
0 files changed, 0 insertions, 0 deletions