mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 10:31:41 +00:00
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:
parent
cc2b4a2971
commit
655e07cd40
1 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue