Ensure ids extracted from Redis remain strings, preventing UUID issues. Previously, ids were being converted to integers, causing problems with UUIDs in the delayed_sidekiq strategy.
This update also enhances the test suite:
Existing tests are updated.
A new test ensures the issue is resolved.
Due to SQLite's lack of UUID support, a stub_uuid_model method is added. This method stubs models with UUIDs, using SecureRandom.uuid for the primary key.
Before submitting the PR make sure the following are checked:
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
Ensure ids extracted from Redis remain strings, preventing UUID issues. Previously, ids were being converted to integers, causing problems with UUIDs in the
delayed_sidekiq
strategy.This update also enhances the test suite:
Due to SQLite's lack of UUID support, a
stub_uuid_model
method is added. This method stubs models with UUIDs, usingSecureRandom.uuid
for the primary key.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).