DEV: Support post deployment migrations for plugins.

This commit is contained in:
Guo Xiang Tan
2018-10-09 13:11:45 +08:00
parent 8b2a379e4e
commit 1c9b5e75e7
3 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
unless ['1', 'true'].include?(ENV["SKIP_POST_DEPLOYMENT_MIGRATIONS"]&.to_s)
unless Discourse.skip_post_deployment_migrations?
Rails.application.config.paths['db/migrate'] << Rails.root.join(
Discourse::DB_POST_MIGRATE_PATH
).to_s