diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-01-11 13:53:28 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-01-18 20:00:57 +0530 |
commit | 0fcd4cf5c26c470623eef9af72a134ef6ba1a701 (patch) | |
tree | f1b09c2bcc6e467a0346de158c4218df65e80c46 /activerecord/CHANGELOG.md | |
parent | 8a87ebfd8f5f3ca2e7d7c063f8cc98158896e475 (diff) | |
download | rails-0fcd4cf5c26c470623eef9af72a134ef6ba1a701.tar.gz rails-0fcd4cf5c26c470623eef9af72a134ef6ba1a701.tar.bz2 rails-0fcd4cf5c26c470623eef9af72a134ef6ba1a701.zip |
Run SQL only if attribute changed for update_attribute method
- This is based on https://github.com/rails/rails/issues/18400 but
tackling same issue with update_attribute method instead of update method.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index bfd3073293..d8f29a77b4 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Don't run SQL if attribute value is not changed for update_attribute method. + + *Prathamesh Sonpatki* + * `time` columns can now affected by `time_zone_aware_attributes`. If you have set `config.time_zone` to a value other than `'UTC'`, they will be treated as in that time zone by default in Rails 5.1. If this is not the desired |