Open pkopac opened 3 months ago
Thanks for reporting this issue. We'll need to ensure backwards compatibility so we'll probably need a version check to make sure this logic is only for AR 7.1+.
I'm thinking we could probably insert some logic in the set_value
lambda:
SomeModel
represents partitioned table (bypartition_key
), where primary key is%w[id partition_key]
so when I do this:it worked fine in Rails 7.0, but in Rails 7.1 when calling
id=
it expects eg. aHash
, not just the value ofid
. So, for compatibility I added this:But the library should probably do something similar so that it works out of the box.