From 6f7fdd7153300505759146dbe93e162d630eb726 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 11 May 2023 13:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'config/database.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 config/database.yml diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000..52df2f8 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,50 @@ +production: + adapter: postgresql + encoding: unicode + host: localhost + port: 5432 + direct_port: 5432 + database: carto_db_production + username: postgres + password: + conn_validator_timeout: 900 + prepared_statements: false + +staging: + adapter: postgresql + encoding: unicode + host: localhost + port: 5432 + direct_port: 5432 + database: carto_db_staging + username: postgres + password: + conn_validator_timeout: 900 + prepared_statements: false + +development: + adapter: postgresql + encoding: unicode + host: localhost + port: 5432 + direct_port: 5432 + database: carto_db_development + username: postgres + password: + conn_validator_timeout: 900 + pool: 50 + prepared_statements: false + +test: + adapter: postgresql + encoding: unicode + database: carto_db_test + host: localhost + port: 5432 + direct_port: 5432 + username: postgres + password: + conn_validator_timeout: -1 + prepared_statements: false + +Footer