From 302e8f43936b39a09a64935b15b263775544e9b9 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Wed, 2 Oct 2019 15:28:38 +1000 Subject: [PATCH] FIX: Use migrations path for post_migrate (#8133) That is a problem after upgrade to Rails 6. It was partially fixed here: https://github.com/discourse/discourse/commit/025d4ee91f4727540c749e2162680e1042c34376 --- config/initializers/000-post_migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/000-post_migration.rb b/config/initializers/000-post_migration.rb index ca0c06d8a8f..c5dfc682cb3 100644 --- a/config/initializers/000-post_migration.rb +++ b/config/initializers/000-post_migration.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true unless Discourse.skip_post_deployment_migrations? - Rails.application.config.paths['db/migrate'] << Rails.root.join( + ActiveRecord::Migrator.migrations_paths << Rails.root.join( Discourse::DB_POST_MIGRATE_PATH ).to_s end