From 2defab25b7a4e324fc7d8dc87a2f267a57b83b50 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Fri, 6 Dec 2024 17:39:22 +0200 Subject: [PATCH] DEV: Remove references to categories_only_optimized (#30151) This category style has been removed in f1700ca5. --- ...1_delete_categories_only_optimized_site_setting.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20241206121401_delete_categories_only_optimized_site_setting.rb diff --git a/db/migrate/20241206121401_delete_categories_only_optimized_site_setting.rb b/db/migrate/20241206121401_delete_categories_only_optimized_site_setting.rb new file mode 100644 index 00000000000..db1f2b6a81b --- /dev/null +++ b/db/migrate/20241206121401_delete_categories_only_optimized_site_setting.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class DeleteCategoriesOnlyOptimizedSiteSetting < ActiveRecord::Migration[7.2] + def up + execute "DELETE FROM site_settings WHERE name = 'desktop_category_page_style' AND value = 'categories_only_optimized'" + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end