Skip to content

Commit 0ab62c6

Browse files
Create database migration to enable feature flags
When this release is deployed, the new feature flags will default to being disabled. This has the potential to create issues; if there are any vaccination records created before they are manually enabled, then they won't be synced. This way, the functionality will be enabled immediately after the new version goes live, meaning this is no longer a concern.
1 parent f8ce3a1 commit 0ab62c6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
class EnableNewFeatureFlags < ActiveRecord::Migration[8.0]
4+
def change
5+
Flipper.enable(:imms_api_integration)
6+
Flipper.enable(:imms_api_sync_job)
7+
end
8+
end

db/schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[8.0].define(version: 2025_09_03_164644) do
13+
ActiveRecord::Schema[8.0].define(version: 2025_09_05_153313) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pg_catalog.plpgsql"
1616
enable_extension "pg_trgm"

0 commit comments

Comments
 (0)