Files
Redmine/db/migrate/20251007073256_create_webhooks.rb
Marius Balteanu d90d192f48 Introduces issue webhooks (#29664):
* users can set up hooks for issue creation, update and deletion events, for any number of projects
* hooks run in the context of the creating user, and only if the object in question is visible to that user
* the actual HTTP call is done in ActiveJob
* webhook calls are optionally signed the same way GitHub does

Patch by Jens Krämer (user:jkraemer).



git-svn-id: https://svn.redmine.org/redmine/trunk@24034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-07 06:49:14 +00:00

18 lines
503 B
Ruby

class CreateWebhooks < ActiveRecord::Migration[8.0]
def change
create_table :webhooks do |t|
t.string :url, null: false, limit: 2000
t.string :secret
t.text :events
t.integer :user_id, null: false, index: true
t.boolean :active, null: false, default: false, index: true
t.timestamps
end
create_table :projects_webhooks do |t|
t.integer :project_id, null: false, index: true
t.integer :webhook_id, null: false, index: true
end
end
end