instance method
delete
Ruby on Rails 4.1.16
Since v2.2.3Signature
delete(arel, name = nil, binds = [])
Executes the delete 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 105
def delete(arel, name = nil, binds = [])
exec_delete(to_sql(arel, binds), name, binds)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 105
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements