Skip to content

Commit 0a16f3d

Browse files
authored
Merge pull request #536 from coopdevs/connect-to-db-without-url
Replace DATABASE_URL with DATABASE_NAME
2 parents f0c8241 + 5a607e9 commit 0a16f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ staging:
3131
database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_staging') %>
3232

3333
production:
34-
# Set DATABASE_URL environment variable
35-
url: <%= ENV['DATABASE_URL'] %>
34+
<<: *defaults
35+
database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_production') %>
3636

3737
next:
3838
<<: *defaults

0 commit comments

Comments
 (0)