A platform for community discussion. Free, open, simple.
FIX: Do not dump schema during production database migrations (#12785)
David Taylor65164bf18950
diff --git a/Rakefile b/Rakefileindex dc7fdf2ecfd..d0e674f5aba 100755--- a/Rakefile+++ b/Rakefile@@ -7,7 +7,3 @@require File.expand_path('../config/application', __FILE__)Discourse::Application.load_tasks--# this prevents crashes when migrating a database in production in certain-# PostgreSQL configuations when trying to create structure.sql-Rake::Task["db:structure:dump"].clear if Rails.env.production?diff --git a/config/environments/production.rb b/config/environments/production.rbindex 2f0b0d5d277..a523888a8d5 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -67,4 +67,5 @@ Discourse::Application.configure doconfig.developer_emails = emails.split(",").map(&:downcase).map(&:strip)end+ config.active_record.dump_schema_after_migration = falseend