From 655e07cd4091a61a54d170af9e0d27b0ecd29acb Mon Sep 17 00:00:00 2001 From: f Date: Thu, 6 May 2021 12:29:48 -0300 Subject: [PATCH] =?UTF-8?q?configuraci=C3=B3n=20de=20las=20bases=20de=20da?= =?UTF-8?q?tos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ahora el testeo y desarrollo tambiƩn se hace en postgresql. nos queda pendiente que cada quien pueda usar la base de datos que quiera y que si nos posible indexar documentos, que sea opcional. --- config/database.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/config/database.yml b/config/database.yml index 28e195b..9e72da0 100644 --- a/config/database.yml +++ b/config/database.yml @@ -5,25 +5,24 @@ # gem 'sqlite3' # default: &default - adapter: sqlite3 + adapter: postgresql pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> timeout: 5000 + database: sutty + user: postgres + host: postgresql + encoding: unicode development: <<: *default - database: db/development.sqlite3 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: <<: *default - database: db/test.sqlite3 + database: sutty_test production: - adapter: postgresql - pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - database: sutty + <<: *default user: sutty - host: postgresql - encoding: unicode