instance method
update_sql
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v3.2.22.5Signature
update_sql(sql, name = nil)
Executes an UPDATE query and returns the number of affected tuples.
Parameters
-
sqlreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 648
def update_sql(sql, name = nil)
super.cmd_tuples
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 648
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter