Skip to content

Commit

Permalink
standardize db naming by envs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed May 16, 2024
1 parent 35a07bc commit 0050a88
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ default: &default
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 10 } %>
timeout: 5000

development:
# DATABASE CONFIGURATIONS
primary: &primary
<<: *default
database: storage/development.sqlite3
database: storage/<%= Rails.env %>_rubyvideo.sqlite3

development:
primary: *primary

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

production:
<<: *default
database: storage/production_rubyvideo.sqlite3
primary: *primary

0 comments on commit 0050a88

Please sign in to comment.