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/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::BlankLineo;
;	[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