2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class CreateWebHooks < ActiveRecord::Migration[4.2]
|
2016-06-15 13:49:57 -04:00
|
|
|
def change
|
|
|
|
create_table :web_hooks do |t|
|
|
|
|
t.string :payload_url, null: false
|
|
|
|
t.integer :content_type, default: 1, null: false
|
|
|
|
t.integer :last_delivery_status, default: 1, null: false
|
|
|
|
t.integer :status, default: 1, null: false
|
|
|
|
t.string :secret, default: ''
|
|
|
|
t.boolean :wildcard_web_hook, default: false, null: false
|
|
|
|
t.boolean :verify_certificate, default: true, null: false
|
|
|
|
t.boolean :active, default: false, null: false
|
|
|
|
|
2017-08-07 11:48:36 -04:00
|
|
|
t.timestamps null: false
|
2016-06-15 13:49:57 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|