Skip to content

Instantly share code, notes, and snippets.

@PabloB07
Forked from Turupawn/database.yml
Created June 7, 2020 01:23
Show Gist options
  • Select an option

  • Save PabloB07/73947e745a3390c64d86daa4fb58c4fb to your computer and use it in GitHub Desktop.

Select an option

Save PabloB07/73947e745a3390c64d86daa4fb58c4fb to your computer and use it in GitHub Desktop.
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
adapter: postgresql
encoding: unicode
database: MyDatabase
host: localhost
pool: 5
username: postgres
password: MyPassword
# 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: db/test.sqlite3
production:
adapter: postgresql
encoding: unicode
database: MyDatabase_Production
host: localhost
pool: 5
username: postgres
password: <%= ENV['MyDatabase_Password'] %>
role: MyRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment