mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
afe2a19c88
* Add webhooks managment [SCI-5767] * Markup fixes [SCI-5676]
14 lines
376 B
Ruby
14 lines
376 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateWebhooksTable < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :webhooks do |t|
|
|
t.references :activity_filter, null: false, index: true, foreign_key: true
|
|
t.boolean :active, null: false, default: true
|
|
t.string :url, null: false
|
|
t.integer :method, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|