instance method
update_sql
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v4.2.9Signature
update_sql(sql, name = nil)
Executes the update statement and returns the number of rows affected.
Parameters
-
sqlreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 264
def update_sql(sql, name = nil)
execute(sql, name)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 264
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements