Add REPLICA_DB_HOST to replica_enabled helper (#37240)
This commit is contained in:
parent
09ab2829da
commit
9d18df4f8a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
module DatabaseHelper
|
module DatabaseHelper
|
||||||
def replica_enabled?
|
def replica_enabled?
|
||||||
ENV['REPLICA_DB_NAME'] || ENV.fetch('REPLICA_DATABASE_URL', nil)
|
ENV['REPLICA_DB_NAME'] || ENV['REPLICA_DB_HOST'] || ENV.fetch('REPLICA_DATABASE_URL', nil)
|
||||||
end
|
end
|
||||||
module_function :replica_enabled?
|
module_function :replica_enabled?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user