Skip to content

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

FIX: change off to disabled for fast_typing_threshold setting (#31077)

Krzysztof Kotlarek33fe79be6a23
diff --git a/db/migrate/20250130205841_fix_incorrect_fast_typing_threshold_setting.rb b/db/migrate/20250130205841_fix_incorrect_fast_typing_threshold_setting.rb
new file mode 100644
index 00000000000..578fe2fa47d
--- /dev/null
+++ b/db/migrate/20250130205841_fix_incorrect_fast_typing_threshold_setting.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class FixIncorrectFastTypingThresholdSetting < ActiveRecord::Migration[7.2]
+ def change
+ execute "UPDATE site_settings SET value = 'disabled' WHERE name = 'fast_typing_threshold' AND value = 'off'"
+ end
+end