associations_of
Retrieve all ActiveRecord associations for a Rails model, including has_many, has_one, belongs_to, HABTM, and reverse references from other models.
Instructions
Rails-specific: all ActiveRecord associations on a model.
Returns outgoing has_many/has_one/belongs_to/HABTM plus reverse-references (other models that point at this one).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |