A platform for community discussion. Free, open, simple.
DEV: Don’t ever dump the DB schema (#35736)
Loïc Guitaut22d0bf039627
diff --git a/config/application.rb b/config/application.rbindex 356b1fb3b70..596b560a887 100644--- a/config/application.rb+++ b/config/application.rb@@ -92,6 +92,7 @@ module Discourseconfig.action_dispatch.cookies_serializer = :message_pack_allow_marshalconfig.action_controller.wrap_parameters_by_default = falseconfig.active_support.cache_format_version = 7.1+ config.active_record.dump_schema_after_migration = false# we skip it cause we configure it in the initializer# the railtie for message_bus would insert it in thediff --git a/config/environments/production.rb b/config/environments/production.rbindex abb266cd651..eaf45eb97fd 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -48,8 +48,6 @@ Discourse::Application.configure doconfig.developer_emails = emails.split(",").map(&:downcase).map(&:strip)end- config.active_record.dump_schema_after_migration = false-if ENV["RAILS_LOG_TO_STDOUT"].present?config.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))end