mirror of
https://github.com/discourse/discourse.git
synced 2025-01-22 12:47:47 +08:00
Merge pull request #688 from wojciechka/rakefile_db_dump_fix
Prevent crashes during migration in certain PostgreSQL configurations
This commit is contained in:
commit
4377bd1036
5
Rakefile
5
Rakefile
|
@ -5,3 +5,8 @@
|
||||||
require File.expand_path('../config/application', __FILE__)
|
require File.expand_path('../config/application', __FILE__)
|
||||||
|
|
||||||
Discourse::Application.load_tasks
|
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?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user