scinote-web/db/migrate/20210603152345_create_webhooks_table.rb
aignatov-bio afe2a19c88
Add webhooks management [SCI-5767] (#3376)
* Add webhooks managment [SCI-5767]

* Markup fixes [SCI-5676]
2021-06-09 12:53:11 +02:00

15 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