20220606044941_create_webhooks.rb 390 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateWebhooks < ActiveRecord::Migration[6.1]
  3. def change
  4. create_table :webhooks do |t|
  5. t.string :url, null: false, index: { unique: true }
  6. t.string :events, array: true, null: false, default: []
  7. t.string :secret, null: false, default: ''
  8. t.boolean :enabled, null: false, default: true
  9. t.timestamps
  10. end
  11. end
  12. end