mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add migration to enable inventory for existing Enterprises
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EnableFeatureInventoryForExistingEnterprises < ActiveRecord::Migration[7.0]
|
||||
# rubocop:disable Naming/VariableNumber
|
||||
def up
|
||||
Flipper.enable_group(:inventory, :enterprise_created_before_2025_07_04)
|
||||
end
|
||||
|
||||
def down
|
||||
Flipper.disable_group(:inventory, :enterprise_created_before_2025_07_04)
|
||||
end
|
||||
# rubocop:enable Naming/VariableNumber
|
||||
end
|
||||
Reference in New Issue
Block a user