rails_get_model_details
Retrieve ActiveRecord model details—associations, validations, scopes, enums, callbacks, concerns—to understand relationships and check existing behavior before edits.
Instructions
Get ActiveRecord model details: associations, validations, scopes, enums, callbacks, concerns. Use when: understanding model relationships, adding validations, checking existing scopes/callbacks. Specify model:"User" for full detail, or omit for a list. detail:"full" shows association lists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max models to return when listing. Default: 50. | |
| model | No | Model class name (e.g. 'User', 'Post'). Omit to list all models. | |
| detail | No | Detail level for model listing. summary: names only. standard: names + association/validation counts (default). full: names + full association list. Ignored when specific model is given (always returns full). | |
| offset | No | Skip this many models for pagination. Default: 0. |