File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Relation/delete_by-i.ri
U:RDoc::AnyMethod[iI"delete_by:ETI"%ActiveRecord::Relation#delete_by;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"FFinds and deletes all records matching the specified conditions. ;TI"KThis is short-hand for <tt>relation.where(condition).delete_all</tt>. ;TI")Returns the number of rows affected.;To:RDoc::Markup::BlankLine o;
; [I"JIf no record is found, returns <tt>0</tt> as zero rows were affected.;T@o:RDoc::Markup::Verbatim; [I"Person.delete_by(id: 13)
;TI"4Person.delete_by(name: 'Spartacus', rating: 4)
;TI"6Person.delete_by("published_at < ?", 2.weeks.ago);T:@format0:
@fileI""lib/active_record/relation.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*args);T@FI"
Relation;TcRDoc::NormalClass00