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
The above results in the following (working) query.
DELETEFROM"piece_images"AS p0 WHERE (p0."piece_id"= ?) ["f1511051-0079-448b-b0b9-562d71b0ad96"]
But deleting a (parent) record, where on_delete: :delete_all is set on a relationship (many_to_many here) I get the following query, which doesn't work:
DELETEFROM"piece_images"AS p0 WHERE (p0."piece_id"= CAST(? AS BLOB)) ["7e162d9e-3e22-4846-adf1-b4abd25966ac"]
The latter query works with the binary_id_type: :string setting (still casting, but to TEXT), but using binary_id_type: :binary it doesn't work.