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/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/Relation/destroy_all-i.ri
U:RDoc::AnyMethod[iI"destroy_all:ETI"'ActiveRecord::Relation#destroy_all;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"0Destroys the records by instantiating each ;TI"Mrecord and calling its {#destroy}[rdoc-ref:Persistence#destroy] method. ;TI"_Each object's callbacks are executed (including <tt>:dependent</tt> association options). ;TI"TReturns the collection of objects that were destroyed; each will be frozen, to ;TI"Lreflect that no changes should be made (since they can't be persisted).;To:RDoc::Markup::BlankLineo;
;	[I"CNote: Instantiation, callback execution, and deletion of each ;TI"Grecord can be time consuming when you're removing many records at ;TI"Gonce. It generates at least one SQL +DELETE+ query per record (or ;TI"Kpossibly more, to enforce your callbacks). If you want to delete many ;TI"Lrows quickly, without concern for their associations or callbacks, use ;TI"#delete_all instead.;T@S:RDoc::Markup::Heading:
leveli	:	textI"
Examples;T@o:RDoc::Markup::Verbatim;	[I")Person.where(age: 0..18).destroy_all;T:@format0:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI"
Relation;TcRDoc::NormalClass00