Implementing Webhooks in Rails — Part 1 — Initial Domain Modeling

preview_player
Показать описание
This is a completely unedited screencast of my first attempt to implement webhooks for Bullet Train. I have no idea who would want to watch this and I certainly wouldn't want to, but I'm making it available on the off chance that it might be beneficial to someone.
Рекомендации по теме
Комментарии
Автор

Great to see your workflow ! Your modeling.rb files makes a lot of sense to me, will try it as soon as needed !

StuxNETozor
Автор

Very useful. Is the code available somewhere?

StijnVerrept
Автор

By specifying the complete table in the references it works.

class < ActiveRecord::Migration[6.1]
def change
create_table do |t|
t.references :endpoint, foreign_key: {to_table: :webhooks_outgoing_endpoints}, null: false
t.references :event, foreign_key: {to_table: :webhooks_outgoing_events}, null: false

t.timestamps
end
end
end

StijnVerrept
Автор

hi,
what is bullet train? is ur project open source. can i see the code. i m trying to learn rabbitmq thing and dont know where to start.

rjsnh