2dfe38ae4d
- Add more feature flags for CRM, auto_resolution, and reports - Add a SuperAdmin link in the sidebar if the user is a super-admin - SuperAdmin could view all the features on an account irrespective of whether the feature is enabled.
16 lines
376 B
Ruby
16 lines
376 B
Ruby
class EnabledNewFeatures < ActiveRecord::Migration[6.1]
|
|
def change
|
|
Account.find_in_batches do |account_batch|
|
|
account_batch.each do |account|
|
|
account.enable_features(
|
|
'channel_website',
|
|
'campaigns',
|
|
'reports',
|
|
'crm',
|
|
'auto_resolve_conversations'
|
|
)
|
|
account.save!
|
|
end
|
|
end
|
|
end
|
|
end
|