diff options
| author | Alban Peignier | 2018-03-12 09:13:47 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-03-12 09:14:03 +0100 |
| commit | 2cb01a39e9ce5865c25982b4a89c30d23c1e8d95 (patch) | |
| tree | a42f8b70bc8ea3e571bb41ce064bbccd902909ab | |
| parent | d8cb2105d28f1463b22b556c1eb0bb4ff2ec3564 (diff) | |
| download | chouette-core-2cb01a39e9ce5865c25982b4a89c30d23c1e8d95.tar.bz2 | |
Save database.yml. Refs #6047
| -rw-r--r-- | config/database.yml | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/config/database.yml b/config/database.yml index 25a46be1b..60f1d032f 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,11 +1,28 @@ -test: - adapter: <%= ENV.fetch 'RAILS_DB_ADAPTER', 'postgis' %> +default: &default + adapter: postgis encoding: unicode - pool: <%= ENV.fetch 'RAILS_DB_POOLSIZE', '5' %> - host: <%= ENV.fetch 'RAILS_DB_HOST', 'localhost' %> - port: <%= ENV.fetch 'RAILS_DB_PORT', '5432' %> + port: 5432 + host: localhost schema_search_path: 'public,shared_extensions' + username: chouette + password: chouette postgis_schema: 'shared_extensions' - database: <%= ENV.fetch 'RAILS_DB_NAME', 'stif_boiv_test' %> - username: <%= ENV['RAILS_DB_USER'] || ENV['POSTGRESQL_ENV_POSTGRES_USER'] || 'jenkins' %> - password: <%= ENV.fetch 'RAILS_DB_PASSWORD' || ENV['POSTGRESQL_ENV_POSTGRES_PASSWORD'] %> + +development: + <<: *default + database: chouette2 + +# 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: &test + <<: *default + database: chouette_test + +production: + <<: *default + adapter: <%= ENV.fetch 'RAILS_DB_ADAPTER', 'postgis' %> + database: chouette2 + +cucumber: + <<: *test |
