mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:21:19 +08:00
DEV: Support post deployment migrations for plugins.
This commit is contained in:
@ -649,4 +649,8 @@ module Discourse
|
||||
ENV["DISCOURSE_RUNNING_IN_RACK"] == "1"
|
||||
end
|
||||
|
||||
def self.skip_post_deployment_migrations?
|
||||
['1', 'true'].include?(ENV["SKIP_POST_DEPLOYMENT_MIGRATIONS"]&.to_s)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user