chore: Add feature flags for campaigns and website channel (#5778)
Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
13
db/migrate/20221029202300_add_two_features_to_accounts.rb
Normal file
13
db/migrate/20221029202300_add_two_features_to_accounts.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class AddTwoFeaturesToAccounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
Account.find_in_batches do |account_batch|
|
||||
account_batch.each do |account|
|
||||
account.enable_features(
|
||||
'campaigns',
|
||||
'channel_website'
|
||||
)
|
||||
account.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user