Chatwoot/db/migrate/20220920014549_enable_help_center.rb

12 lines
297 B
Ruby

class EnableHelpCenter < ActiveRecord::Migration[6.1]
def change
return if ENV['DEPLOYMENT_ENV'] == 'cloud'
Account.find_in_batches do |account_batch|
account_batch.each do |account|
account.enable_features('help_center')
account.save!
end
end
end
end