Skip to content

Commit af10be4

Browse files
committed
Default to local database when DATABASE_URL not set.
1 parent 8314b4d commit af10be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/database_adapters/mongoid/mongoid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ development:
1111
test:
1212
clients:
1313
default:
14-
uri: <%= ENV["DATABASE_URL"] %>
14+
uri: <%= ENV["DATABASE_URL"] || 'mongodb://localhost' %>
1515
options:
1616
raise_not_found_error: false
1717
use_utc: true

0 commit comments

Comments
 (0)