From 43b85a6e9b7348e1fee490d88219b36df348c46f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 17 May 2021 15:51:20 -0300 Subject: [PATCH] =?UTF-8?q?poder=20cambiar=20la=20base=20de=20datos=20de?= =?UTF-8?q?=20producci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 1 + config/database.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 56075093..2ba46219 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ +DATABASE= RAILS_ENV= IMAP_SERVER= DEFAULT_FROM= diff --git a/config/database.yml b/config/database.yml index 28e195b8..7989a013 100644 --- a/config/database.yml +++ b/config/database.yml @@ -23,7 +23,7 @@ test: production: adapter: postgresql pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - database: sutty + database: <%= ENV.fetch('DATABASE') { 'sutty' } %> user: sutty host: postgresql encoding: unicode