Enable subscribing to specific actions

This commit is contained in:
Stanko K.R.
2025-09-10 19:09:20 +02:00
parent a515ea3b1f
commit 9cfd1e43af
16 changed files with 288 additions and 15 deletions
@@ -4,6 +4,7 @@ class CreateWebhooks < ActiveRecord::Migration[8.1]
t.boolean :active, default: true, null: false
t.string :name
t.text :url, null: false
t.text :subscribed_actions, index: true
t.string :signing_secret, null: false
t.timestamps
Generated
+1
View File
@@ -472,6 +472,7 @@ ActiveRecord::Schema[8.1].define(version: 2025_09_15_170056) do
t.datetime "created_at", null: false
t.string "name"
t.string "signing_secret", null: false
t.text "subscribed_actions"
t.datetime "updated_at", null: false
t.text "url", null: false
end
+10
View File
@@ -1396,6 +1396,16 @@ columns:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: subscribed_actions
cast_type: *15
sql_type_metadata: *16
'null': true
default:
default_function:
collation:
comment:
- *9
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment: