FIX: Use migrations path for post_migrate (#8133)

That is a problem after upgrade to Rails 6. It was partially fixed here: 025d4ee91f
This commit is contained in:
Krzysztof Kotlarek 2019-10-02 15:28:38 +10:00 committed by Sam
parent 34813b643d
commit 302e8f4393
1 changed files with 1 additions and 1 deletions

View File

@ -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