Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Created November 16, 2019 00:54
Show Gist options
  • Save Turupawn/029eeb2e4372603be56efe0b1045adf1 to your computer and use it in GitHub Desktop.
Save Turupawn/029eeb2e4372603be56efe0b1045adf1 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