Only Enable Hypershield if ENV variable is present (#6666) [deploy]
* only enable hypershield if ENV variable is present * enable hypershield if in production
This commit is contained in:
parent
1d9c8a8e11
commit
066e2885e8
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
|||
# further setup instructions: https://github.com/ankane/hypershield#database-setup
|
||||
|
||||
if Rails.env.production?
|
||||
Hypershield.enabled = ENV["ENABLE_HYPERSHIELD"].present?
|
||||
|
||||
# Validate that hypershield schema exists before trying to use it
|
||||
begin
|
||||
if ActiveRecord::Base.connection.schema_exists?("hypershield")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue