chore: Add feature flags in the settings console (#5657)

This commit is contained in:
Pranav Raj S
2022-10-17 14:59:44 -07:00
committed by GitHub
parent 73f5595762
commit 20b4a91122
14 changed files with 130 additions and 27 deletions

View File

@@ -0,0 +1,20 @@
class AddFeaturesToAccounts < ActiveRecord::Migration[6.1]
def change
Account.find_in_batches do |account_batch|
account_batch.each do |account|
account.enable_features(
'agent_management',
'automations',
'canned_responses',
'custom_attributes',
'inbox_management',
'integrations',
'labels',
'team_management',
'voice_recorder'
)
account.save!
end
end
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_10_10_212946) do
ActiveRecord::Schema.define(version: 2022_10_17_201914) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"