answered 2021-08-12 15:00:00 +0000
Without the SQL query provided, it is impossible to give a specific counterpart in Ruby's ActiveRecord.