diff options
author | Starfall <us@starfall.systems> | 2022-06-24 13:31:43 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-06-24 13:31:43 -0500 |
commit | d83f17f6763a1ffb3569eac73330cb09c557acea (patch) | |
tree | 92d392eed60a7d60bbd01e8544202db19a37e3d5 /db/migrate | |
parent | b9c901007b9a5772d2553a5770fa479954eec58f (diff) | |
parent | 63f79874b59b3ba28c0f940b9d36ea7aacb44c93 (diff) |
Merge remote-tracking branch 'glitch/main'
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20220606044941_create_webhooks.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20220606044941_create_webhooks.rb b/db/migrate/20220606044941_create_webhooks.rb new file mode 100644 index 000000000..cca48fce6 --- /dev/null +++ b/db/migrate/20220606044941_create_webhooks.rb @@ -0,0 +1,12 @@ +class CreateWebhooks < ActiveRecord::Migration[6.1] + def change + create_table :webhooks do |t| + t.string :url, null: false, index: { unique: true } + t.string :events, array: true, null: false, default: [] + t.string :secret, null: false, default: '' + t.boolean :enabled, null: false, default: true + + t.timestamps + end + end +end |