chore: Enable help center for self-hosted accounts (#5458)
This commit is contained in:
12
db/migrate/20220920014549_enable_help_center.rb
Normal file
12
db/migrate/20220920014549_enable_help_center.rb
Normal 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
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2022_09_19_225556) do
|
ActiveRecord::Schema.define(version: 2022_09_20_014549) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_stat_statements"
|
enable_extension "pg_stat_statements"
|
||||||
|
|||||||
Reference in New Issue
Block a user