discourse/config/initializers/000-post_migration.rb
Krzysztof Kotlarek 302e8f4393 FIX: Use migrations path for post_migrate (#8133)
That is a problem after upgrade to Rails 6. It was partially fixed here: 025d4ee91f
2019-10-02 15:28:38 +10:00

8 lines
192 B
Ruby

# frozen_string_literal: true
unless Discourse.skip_post_deployment_migrations?
ActiveRecord::Migrator.migrations_paths << Rails.root.join(
Discourse::DB_POST_MIGRATE_PATH
).to_s
end