joshmn / caffeinate

A Rails engine for drip campaigns/scheduled sequences and periodical support. Works with ActionMailer, and other things.

Home Page:https://caffeinate.email

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated migrations do not work if you are using UUIDs as primary key type

johnmcdowall opened this issue · comments

Hello, and thanks for this awesome gem!

Just wanted to let you know that the default generated migrations will silently fail if the app is using UUIDs as the primary key type. No failure occurs, just that the association values will be 0 since the default ID type is bigint.

Might be worth adding a note in the README that if you're app is using UUIDs then you'll need to edit the generated migrations. Or you could do something fancier.

Happy to submit PRs for either or neither!

Thanks 🙇

commented

Helloooo! No no, thank you for using it! :')

That sounds.... correct, or expected. By all means, submit submit submit! Happy to approve; I have no experience with UUIDs. :)