diff --git a/db/migrate/20240810150912_activate_admin_style_v3_for75_pc_users.rb b/db/migrate/20240810150912_activate_admin_style_v3_for75_pc_users.rb new file mode 100644 index 0000000000..cc412c0b58 --- /dev/null +++ b/db/migrate/20240810150912_activate_admin_style_v3_for75_pc_users.rb @@ -0,0 +1,9 @@ +class ActivateAdminStyleV3For75PcUsers < ActiveRecord::Migration[7.0] + def up + Flipper.enable_percentage_of_actors(:admin_style_v3, 75) + end + + def down + Flipper.enable_percentage_of_actors(:admin_style_v3, 50) + end +end diff --git a/db/schema.rb b/db/schema.rb index 04013a7caf..0ba99991e3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2024_08_01_034710) do +ActiveRecord::Schema[7.0].define(version: 2024_08_10_150912) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" enable_extension "plpgsql" diff --git a/lib/open_food_network/feature_toggle.rb b/lib/open_food_network/feature_toggle.rb index aedef176fb..64a5d75dc9 100644 --- a/lib/open_food_network/feature_toggle.rb +++ b/lib/open_food_network/feature_toggle.rb @@ -51,7 +51,7 @@ module OpenFoodNetwork # Copy features here that were activated in a migration so that new # instances, development and test environments have the feature active. "admin_style_v3" => <<~DESC, - Test the work-in-progress design updates. + Test the work-in-progress design updates. Activated for admins, new users, and 75% of all users. DESC }.freeze