chore: Enable help center for self-hosted accounts (#5458)

This commit is contained in:
Sojan Jose
2022-09-20 08:09:41 +05:30
committed by GitHub
parent 6b80afaf50
commit 3b7cae19e6
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
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