mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
Prevent crashes during migration in certain PostgreSQL configurations
This commit is contained in:
parent
33e3ad1603
commit
52a8f00d82
1 changed files with 5 additions and 0 deletions
5
Rakefile
5
Rakefile
|
@ -5,3 +5,8 @@
|
|||
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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue