diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-02-25 11:42:40 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-02-25 11:46:05 +0100 |
commit | 536b3f0fb5a7fc9965aebc9c3bf95cb8532dbcc3 (patch) | |
tree | 0b39891aad024888af89d7fdba840e5214c0cf18 | |
parent | 82c361e1462d714a076e0033398c393d0048d649 (diff) | |
download | rails-536b3f0fb5a7fc9965aebc9c3bf95cb8532dbcc3.tar.gz rails-536b3f0fb5a7fc9965aebc9c3bf95cb8532dbcc3.tar.bz2 rails-536b3f0fb5a7fc9965aebc9c3bf95cb8532dbcc3.zip |
some minor AR changelog modifications [ci skip]
-rw-r--r-- | activerecord/CHANGELOG.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index c7085a0eaa..ecdf829823 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -3,8 +3,10 @@ * Fixing issue #8345. Now throwing an error when one attempts to touch a new object that has not yet been persisted. For instance: - ball = Ball.new - ball.touch :updated_at # => raises error + Example: + + ball = Ball.new + ball.touch :updated_at # => raises error It is not until the ball object has been persisted that it can be touched. This follows the behavior of update_column. @@ -32,7 +34,9 @@ Example: - after_commit :update_cache on: [:create, :update] + after_commit :update_cache on: [:create, :update] + + *Yves Senn* * Rename related indexes on `rename_table` and `rename_column`. This does not affect indexes with custom names. |