aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorNicolas Cavigneaux <nico@bounga.org>2014-10-14 10:01:24 +0200
committerNicolas Cavigneaux <nico@bounga.org>2014-10-14 10:09:18 +0200
commit531a9d25dde7c6604cd752a740e844772aa96c42 (patch)
tree658ed5be0bd73ac19ff065951742ba4ef9cb849b /activerecord/lib
parentc9504753504fbcbf68f870376f218cdd17cae0a0 (diff)
downloadrails-531a9d25dde7c6604cd752a740e844772aa96c42.tar.gz
rails-531a9d25dde7c6604cd752a740e844772aa96c42.tar.bz2
rails-531a9d25dde7c6604cd752a740e844772aa96c42.zip
Clarify `#update_all` doc about value processing
This clarify the fact that `#update_all` doesn't type-cast passed values and that these values are written as-is in the SQL DB. Fix #17242 [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index ad54d84665..dadc3c1eeb 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -305,7 +305,8 @@ module ActiveRecord
# Updates all records with details given if they match a set of conditions supplied, limits and order can
# also be supplied. This method constructs a single SQL UPDATE statement and sends it straight to the
# database. It does not instantiate the involved models and it does not trigger Active Record callbacks
- # or validations.
+ # or validations. Values passed to `update_all` will not go through ActiveRecord's type-casting behavior.
+ # It should receive only values that can be passed as-is to the SQL database.
#
# ==== Parameters
#