Chatwoot/db/migrate/20221029202300_add_two_features_to_accounts.rb

14 lines
304 B
Ruby
Raw Normal View History

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