From 28af42371be9a3dace9ccc77a08fbca61a76e6b9 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Tue, 18 Nov 2025 14:07:12 +1100 Subject: [PATCH] Add migration to turn varian tags on --- ...gs_for_enterprise_with_inventory_but_not_in_use.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20251118030428_enable_variant_tags_for_enterprise_with_inventory_but_not_in_use.rb diff --git a/db/migrate/20251118030428_enable_variant_tags_for_enterprise_with_inventory_but_not_in_use.rb b/db/migrate/20251118030428_enable_variant_tags_for_enterprise_with_inventory_but_not_in_use.rb new file mode 100644 index 0000000000..74bc35c668 --- /dev/null +++ b/db/migrate/20251118030428_enable_variant_tags_for_enterprise_with_inventory_but_not_in_use.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class EnableVariantTagsForEnterpriseWithInventoryButNotInUse < ActiveRecord::Migration[7.1] + def up + Flipper.enable_group(:variant_tag, :old_enterprise_with_no_inventory) + end + + def down + Flipper.disable_group(:variant_tag, :old_enterprise_with_no_inventory) + end +end