Tra*_*vis 13

您可以将where语句链接或包含多个条件where.

Model.where(condition_a: :a, condition_b: :b).all
Run Code Online (Sandbox Code Playgroud)

要么

Model.where(condition_a: :a).where(condition_b: :b).all
Run Code Online (Sandbox Code Playgroud)