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:
parent
34813b643d
commit
302e8f4393
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
unless Discourse.skip_post_deployment_migrations?
|
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
|
Discourse::DB_POST_MIGRATE_PATH
|
||||||
).to_s
|
).to_s
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue