You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When hovering over an ActiveRecord model, we show a schema consisting of the field names and types. It could be useful to also indicate the primary key, e.g. with a (PK) suffix.
To check which field is the primary key, we can call .primary_key on the model class.
The text was updated successfully, but these errors were encountered:
When hovering over an ActiveRecord model, we show a schema consisting of the field names and types. It could be useful to also indicate the primary key, e.g. with a
(PK)
suffix.To check which field is the primary key, we can call
.primary_key
on the model class.The text was updated successfully, but these errors were encountered: