Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for updates and deletes? #21

Open
joegaudet opened this issue Jun 25, 2021 · 1 comment
Open

Support for updates and deletes? #21

joegaudet opened this issue Jun 25, 2021 · 1 comment

Comments

@joegaudet
Copy link

Evaluating this gem, curious if it can support updates / deletes also?

@tjwp
Copy link
Contributor

tjwp commented Jun 25, 2021

Good question. Right now the generator in this gem generates a migration with a trigger on inserts.

If you want to use updates or deletes, then I'd suggest generating that default migration and then customize it to use update or delete instead (I think only one can be used in a trigger). You may also need to customize the payload that is sent with the notification.

Currently the implementation in the gem is to support sidekiq_publisher and similar outbox pattern use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants