diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-27 19:12:28 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-27 21:47:38 -0300 |
commit | 245542ea2994961731be105db6c076256a22a7a9 (patch) | |
tree | 4780488d15d639f516d14b976bb5e077c6dbc3d9 /activerecord/CHANGELOG | |
parent | e6a8a3adaf08cc9d551b4a125aaa276812984be3 (diff) | |
download | rails-245542ea2994961731be105db6c076256a22a7a9.tar.gz rails-245542ea2994961731be105db6c076256a22a7a9.tar.bz2 rails-245542ea2994961731be105db6c076256a22a7a9.zip |
Added new #update_column method.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 6be46349fb..3b6a7d7208 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,14 @@ *Rails 3.1.0 (unreleased)* +* Added an update_column method on ActiveRecord. This new method updates a given attribute on an object, skipping validations and callbacks. + It is recommended to use #update_attribute unless you are sure you do not want to execute any callback, including the modification of + the updated_at column. It should not be called on new records. + Example: + + User.first.update_column(:name, "sebastian") # => true + + [Sebastian Martinez] + * Associations with a :through option can now use *any* association as the through or source association, including other associations which have a :through option and has_and_belongs_to_many associations |