FIX: Use migrations path for post_migrate (#8133)

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

diff --git a/config/initializers/000-post_migration.rb b/config/initializers/000-post_migration.rb
index ca0c06d..c5dfc68 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

GitHub sha: 302e8f43