chore: Add feature flags in the settings console (#5657)
This commit is contained in:
20
db/migrate/20221017201914_add_features_to_accounts.rb
Normal file
20
db/migrate/20221017201914_add_features_to_accounts.rb
Normal 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
|
||||
Reference in New Issue
Block a user