HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activerecord-7.0.4.2/ri/ActiveRecord/Relation/delete_all-i.ri
U:RDoc::AnyMethod[iI"delete_all:ETI"&ActiveRecord::Relation#delete_all;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I";Deletes the records without instantiating the records ;TI"Ofirst, and hence not calling the {#destroy}[rdoc-ref:Persistence#destroy] ;TI"$method nor invoking callbacks. ;TI"YThis is a single SQL DELETE statement that goes straight to the database, much more ;TI"Refficient than #destroy_all. Be careful with relations though, in particular ;TI"T<tt>:dependent</tt> rules defined on associations are not honored. Returns the ;TI"number of rows affected.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"PPost.where(person_id: 5).where(category: ['Something', 'Else']).delete_all
;T:@format0o;
;	[I"VBoth calls delete the affected posts all at once with a single DELETE statement. ;TI"UIf you need to destroy dependent associations or call your <tt>before_*</tt> or ;TI"D+after_destroy+ callbacks, use the #destroy_all method instead.;T@o;
;	[I"OIf an invalid method is supplied, #delete_all raises an ActiveRecordError:;T@o;;	[I"Post.distinct.delete_all
;TI"N# => ActiveRecord::ActiveRecordError: delete_all doesn't support distinct;T;
0:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@$FI"
Relation;TcRDoc::NormalClass00