mirror of
https://github.com/redmine/redmine.git
synced 2025-10-28 16:56:18 +01:00
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
|