ri > ActiveRecord::QueryMethods

🔧 ActiveRecord::QueryMethods

📋 NAME

ActiveRecord::QueryMethods — a module providing query-building methods for ActiveRecord relations.

🚀 Quick Reference

Use CaseCommandDescription
🔍 Filter recordswhere(conditions)Adds a WHERE clause
📊 Sort resultsorder(column)Adds an ORDER BY clause
🔗 Load associationsincludes(:association)Eagerly loads associated records
🔗 Raw SQL joinjoins(:table)Adds a JOIN clause
📏 Limit resultslimit(number)Limits the number of records
📐 Offset resultsoffset(number)Skips the first N records
🎯 Select specific columnsselect(:column)Restricts returned columns
📦 Group resultsgroup(:column)Adds a GROUP BY clause
⚖️ Having filterhaving(conditions)Adds a HAVING clause
⛔ Remove scopesunscope(:scope)Removes specified scopes

📦 Includes

🧩 Extended by

🔧 Constants

🛠️ Instance Methods

ActiveRecord::QueryMethods
🔧 ActiveRecord::QueryMethods 📋 NAME 🚀 Quick Reference 📦 Includes 🧩 Extended by 🔧 Constants 🛠️ Instance Methods

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:31 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format