私はこのクエリを持っています:
City.search(@query, where: {
activated: true,
available: true,
or: [
[
{ country_id: [92, 95] },
{ admin_code_id: [922, 927] }
]
]
}).
しかし、私がやりたいことは次のとおりであるため、where ハッシュは良くないと思います。
activated AND available AND ( country_id IN [92, 95] OR admin_code_id IN [922, 927])
さまざまな構文を試しましたが、うまくいきません。