Skip to content

Commit

Permalink
Merge pull request #536 from coopdevs/connect-to-db-without-url
Browse files Browse the repository at this point in the history
Replace DATABASE_URL with DATABASE_NAME
  • Loading branch information
sauloperez authored Jan 21, 2020
2 parents f0c8241 + 5a607e9 commit 0a16f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ staging:
database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_staging') %>

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

next:
<<: *defaults
Expand Down

0 comments on commit 0a16f3d

Please sign in to comment.