如何使用 ActiveRecord 获得相同的结果?
SELECT categories.* FROM categories
INNER JOIN levels ON levels.id = categories.level_id where levels.description <= "Medium"
如何使用 ActiveRecord 获得相同的结果?
SELECT categories.* FROM categories
INNER JOIN levels ON levels.id = categories.level_id where levels.description <= "Medium"