instance method
update
Ruby on Rails 8.0.4
Since v2.2.3Signature
update(arel, name = nil, binds = [])
Executes the update statement and returns the number of rows affected.
Parameters
-
arelreq -
nameopt = nil -
bindsopt = []
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 206
def update(arel, name = nil, binds = [])
sql, binds = to_sql_and_binds(arel, binds)
exec_update(sql, name, binds)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 206
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements