From 587ce5ad9dc29890dbacee1836b519eefe7db9be Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 31 Jul 2024 16:55:12 +1000 Subject: [PATCH] Activate admin_style_v3 for 50% of users --- .../20240731065321_activate_admin_style_v3_for50_pc_users.rb | 5 +++++ db/schema.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240731065321_activate_admin_style_v3_for50_pc_users.rb diff --git a/db/migrate/20240731065321_activate_admin_style_v3_for50_pc_users.rb b/db/migrate/20240731065321_activate_admin_style_v3_for50_pc_users.rb new file mode 100644 index 0000000000..0cde1950fb --- /dev/null +++ b/db/migrate/20240731065321_activate_admin_style_v3_for50_pc_users.rb @@ -0,0 +1,5 @@ +class ActivateAdminStyleV3For50PcUsers < ActiveRecord::Migration[7.0] + def up + Flipper.enable_percentage_of_actors(:admin_style_v3, 50) + end +end diff --git a/db/schema.rb b/db/schema.rb index 2310ca953f..b1a239f42a 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_07_18_150852) do +ActiveRecord::Schema[7.0].define(version: 2024_07_31_065321) do # These are extensions that must be enabled in order to support this database enable_extension "pg_stat_statements" enable_extension "plpgsql"