configuración de las bases de datos

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.
This commit is contained in:
f 2021-05-06 12:29:48 -03:00
parent cc2b4a2971
commit 655e07cd40

View file

@ -5,25 +5,24 @@
# gem 'sqlite3' # gem 'sqlite3'
# #
default: &default default: &default
adapter: sqlite3 adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000 timeout: 5000
database: sutty
user: postgres
host: postgresql
encoding: unicode
development: development:
<<: *default <<: *default
database: db/development.sqlite3
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production. # Do not set this db to the same as development or production.
test: test:
<<: *default <<: *default
database: db/test.sqlite3 database: sutty_test
production: production:
adapter: postgresql <<: *default
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: sutty
user: sutty user: sutty
host: postgresql
encoding: unicode