Skip to content

Commit 2df8b72

Browse files
authored
Merge pull request #94 from nimblehq/chore/update-config
Update database config
2 parents 428703d + aa7c78f commit 2df8b72

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

shared/config/application.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
default: &default
2+
DB_NAME: "#{app_name}"
23
DB_HOST: "localhost"
34
DB_PORT: "5432"
45
USERNAME: "postgres"
@@ -8,11 +9,9 @@ default: &default
89

910
development:
1011
<<: *default
11-
DB_NAME: "#{app_name}_development"
1212
SECRET_KEY_BASE: "#{secret_key_base}"
1313

1414
test:
1515
<<: *default
16-
DB_NAME: "#{app_name}_test"
1716
TEST_RETRY: "0"
1817
SECRET_KEY_BASE: "#{secret_key_base}"

shared/config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ development:
88
host: <%= ENV['DB_HOST'] %>
99
port: <%= ENV['DB_PORT'] %>
1010
username: <%= ENV['USERNAME'] %>
11-
database: <%= ENV['DB_NAME'] %>
11+
database: <%= ENV['DB_NAME'] %>_development
1212

1313
test:
1414
<<: *default
1515
host: <%= ENV['DB_HOST'] %>
1616
port: <%= ENV['DB_PORT'] %>
1717
username: <%= ENV['USERNAME'] %>
18-
database: <%= ENV['DB_NAME'] %>
18+
database: <%= ENV['DB_NAME'] %>_test
1919

2020
production:
2121
url: <%= ENV['DATABASE_URL'] %>

0 commit comments

Comments
 (0)