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
I'm working on removing queries in my application that should be going
through the SchemaCache in production but currently are not. I found
that the `sessions` table is being queried during runtime due to the
`reset_column_information` when the class is loaded (which clears the
SchemaCache for the `sessions` table).
This commit deprecates the cause of the schema cache clearing: the
`sessid` fallback. This code checks the model's columns and
conditionally redefines methods to allow using `sessid` instead of
`session_id`.
The `session_id` -> `sessid` fallback has been in place for [twenty
years][1], I'd be surprised if there's even a single app still using
`sessid`.
Also of note: many `app.deprecators` implementations check that the
`app` responds to `deprecators` (which was added in Rails 7.1), but
that's our minimum version so we can skip it.
[1]: rails/rails@452442d
0 commit comments