1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

some minor AR changelog modifications [ci skip]

This commit is contained in:
Yves Senn 2013-02-25 11:42:40 +01:00
parent 82c361e146
commit 536b3f0fb5

View file

@ -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.