Skip to content

Commit

Permalink
Merge pull request #16573 from carbonin/unsafe_pg_version_env_var
Browse files Browse the repository at this point in the history
Add an ENV variable to override the PG version check in production
  • Loading branch information
gtanzillo committed Dec 1, 2017
2 parents 1ff04a9 + 7c2efb3 commit 819befd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/postgres_required_versions.rb
Expand Up @@ -9,7 +9,7 @@ def initialize(*args)
if postgresql_version >= 90600
msg = "The version of PostgreSQL being connected to is incompatible with #{I18n.t("product.name")} (9.6+ is not supported yet)"

raise msg if Rails.env.production?
raise msg if Rails.env.production? && !ENV["UNSAFE_PG_VERSION"]
$stderr.puts msg
end
end
Expand Down

0 comments on commit 819befd

Please sign in to comment.