mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
* 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
18 lines
503 B
Ruby
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
|