Skip to content

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.rb
index 356b1fb3b70..596b560a887 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -92,6 +92,7 @@ module Discourse
config.action_dispatch.cookies_serializer = :message_pack_allow_marshal
config.action_controller.wrap_parameters_by_default = false
config.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 the
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abb266cd651..eaf45eb97fd 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -48,8 +48,6 @@ Discourse::Application.configure do
config.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