Skip to content

Commit

Permalink
Prevent crashes during migration in certain PostgreSQL configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechka committed Apr 10, 2013
1 parent 33e3ad1 commit 52a8f00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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?

0 comments on commit 52a8f00

Please sign in to comment.