File: //usr/local/rvm/gems/ruby-2.5.9/doc/activerecord-6.1.4.1/ri/ActiveRecord/QueryMethods/and-i.ri
U:RDoc::AnyMethod[iI"and:ETI"#ActiveRecord::QueryMethods#and;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"cReturns a new relation, which is the logical intersection of this relation and the one passed ;TI"as an argument.;To:RDoc::Markup::BlankLine o;
; [I"aThe two relations must be structurally compatible: they must be scoping the same model, and ;TI"`they must differ only by #where (if no #group has been defined) or #having (if a #group is ;TI"present).;T@o:RDoc::Markup::Verbatim; [I"8Post.where(id: [1, 2]).and(Post.where(id: [2, 3]))
;TI"\# SELECT `posts`.* FROM `posts` WHERE `posts`.`id` IN (1, 2) AND `posts`.`id` IN (2, 3);T:@format0:
@fileI"0lib/active_record/relation/query_methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(other);T@FI"QueryMethods;TcRDoc::NormalModule00