1
0

20220606044941_create_webhooks.rb 359 B

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