Skip to content

A platform for community discussion. Free, open, simple.

FIX: Make web_hook_events#id a bigint (#34620)

Bianca Nenciuf2b7224da4eb
diff --git a/app/models/web_hook_event.rb b/app/models/web_hook_event.rb
index ddcafbb649b..2729b96639d 100644
--- a/app/models/web_hook_event.rb
+++ b/app/models/web_hook_event.rb
@@ -32,7 +32,7 @@ end
#
# Table name: web_hook_events
#
-# id :integer not null, primary key
+# id :bigint not null, primary key
# duration :integer default(0)
# headers :string
# payload :text
diff --git a/db/migrate/20250828181952_alter_web_hook_events_id_to_bigint.rb b/db/migrate/20250828181952_alter_web_hook_events_id_to_bigint.rb
new file mode 100644
index 00000000000..02170317947
--- /dev/null
+++ b/db/migrate/20250828181952_alter_web_hook_events_id_to_bigint.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AlterWebHookEventsIdToBigint < ActiveRecord::Migration[7.2]
+ def up
+ change_column :web_hook_events, :id, :bigint
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end