Skip to content

Commit 0050a88

Browse files
committed
standardize db naming by envs
1 parent 35a07bc commit 0050a88

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

config/database.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ default: &default
99
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 10 } %>
1010
timeout: 5000
1111

12-
development:
12+
# DATABASE CONFIGURATIONS
13+
primary: &primary
1314
<<: *default
14-
database: storage/development.sqlite3
15+
database: storage/<%= Rails.env %>_rubyvideo.sqlite3
16+
17+
development:
18+
primary: *primary
1519

16-
# Warning: The database defined as "test" will be erased and
17-
# re-generated from your development database when you run "rake".
18-
# Do not set this db to the same as development or production.
1920
test:
20-
<<: *default
21-
database: storage/test.sqlite3
21+
primary: *primary
2222

2323
production:
24-
<<: *default
25-
database: storage/production_rubyvideo.sqlite3
24+
primary: *primary

0 commit comments

Comments
 (0)