update admin_style_v3-for-75%

This commit is contained in:
EdwardLi-coder
2024-08-10 23:55:58 +08:00
parent 8ab1cbe600
commit af7b663334
3 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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