HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/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