Replies: 1 comment
-
I've decided we'll just enforce Postgres going forward to avoid this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our Rails app (v7.2) we're manually generating the UUID's due to our use of Postgres and MariaDb (depending on environments, MariaDB doesn't support UUID generation, and we want to avoid having schemas and migrations that handle DB specific logic where possible). In our
ApplicationRecord
we have the following callback:So this automatically sets the UUID for all of our models regardless of whether the DB does it out of the box.
And then we monkey-patch the Noticed ApplicationRecord under
/lib/noticed/application_record.rb
This has allowed us to create Notifications and Events manually (to prove the monkey-patch works).
However it seems when calling
deliver
, we end up with an error:Line of code we're referencing that uses Ephemeral class (could this be the cause?):
noticed/app/models/concerns/noticed/deliverable.rb
Line 67 in 00b5f96
Our manual creation of UUID's works fine with other gems and our main application code, hence why it seems Ephemeral could be the cause. Any ideas for solutions? (other than dropping the manual UUID creation :D)
Beta Was this translation helpful? Give feedback.
All reactions