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
Reloading relations appears to reassign the in-memory parent record ID to the related records' in-memory foreign keys. Additionally, UUIDs are case-insensitive, but are always surfaced to/by ActiveRecord as lowercase.
Consequently, when uppercase UUIDs are supplied as foreign keys in a relation, and the relation is reloaded, ActiveRecord views the in-memory UUID foreign keys on the related records as different from their values in the database, even though UUIDs are just hex representations of binary data (which is inherently uncased).
Reloading relations appears to reassign the in-memory parent record ID to the related records' in-memory foreign keys. Additionally, UUIDs are case-insensitive, but are always surfaced to/by ActiveRecord as lowercase.
Consequently, when uppercase UUIDs are supplied as foreign keys in a relation, and the relation is reloaded, ActiveRecord views the in-memory UUID foreign keys on the related records as different from their values in the database, even though UUIDs are just hex representations of binary data (which is inherently uncased).
Repro follows:
The text was updated successfully, but these errors were encountered: