mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
14 lines
304 B
Ruby
14 lines
304 B
Ruby
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
|