2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-04 17:32:34 +08:00
discourse/db/migrate/20250919061654_remove_floatkit_autocomplete_site_settings.rb
Kelv 547d99e3b4
DEV: remove toggles for switching between jquery & floatkit autocomplete (#34867)
We've had the new floatkit-based autocomplete live in various parts of
Discourse for about a month now, and it's stable enough for us to remove
the site setting letting admins revert to the jquery-based autocomplete
library which is now deprecated.
2025-09-19 14:50:04 +08:00

11 lines
357 B
Ruby

# frozen_string_literal: true
#
class RemoveFloatkitAutocompleteSiteSettings < ActiveRecord::Migration[8.0]
def up
execute "DELETE FROM site_settings WHERE name IN ('floatkit_autocomplete_composer', 'floatkit_autocomplete_input_fields', 'floatkit_autocomplete_chat_composer')"
end
def down
raise ActiveRecord::IrreversibleMigration
end
end