Skip to content

Commit

Permalink
Add sample database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Sep 23, 2024
1 parent 24f8684 commit 600c771
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config/database.yml.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
username: <%= ENV.fetch("POSTGRES_USER") { `echo $USER`} %>
password: <%= ENV.fetch("POSTGRES_PASSWORD") { "" } %>
host: <%= ENV.fetch("POSTGRES_HOST") { "" } %>

development:
<<: *default
database: <%= ENV.fetch("DB_NAME") { "rails_bump_development" } %>

# 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: rails_bump_test

production:
<<: *default
database: rails_bump_production

0 comments on commit 600c771

Please sign in to comment.