Skip to content

Commit 52a8f00

Browse files
committed
Prevent crashes during migration in certain PostgreSQL configurations
1 parent 33e3ad1 commit 52a8f00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rakefile

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
require File.expand_path('../config/application', __FILE__)
66

77
Discourse::Application.load_tasks
8+
9+
# this prevents crashes when migrating a database in production in certain
10+
# PostgreSQL configuations when trying to create structure.sql
11+
Rake::Task["db:structure:dump"].clear if Rails.env.production?
12+

0 commit comments

Comments
 (0)