Skip to content

Instantly share code, notes, and snippets.

@hooopo
Created November 30, 2018 03:19
Show Gist options
  • Save hooopo/039993f3c560ffc2dfa9f6c7f6bb367e to your computer and use it in GitHub Desktop.
Save hooopo/039993f3c560ffc2dfa9f6c7f6bb367e to your computer and use it in GitHub Desktop.
CREATE DATABASE chronicle ENCODING 'UTF-8' LC_COLLATE = 'C' LC_CTYPE = 'C' TEMPLATE template0;
@hooopo
Copy link
Author

hooopo commented Nov 30, 2018

default: &default
  adapter: postgresql
  encoding: unicode
  template: template0
  collation: C
  ctype: C
  host: <%= ENV.fetch("POSTGRES_HOST") { "localhost" } %>
  port: <%= ENV.fetch("POSTGRES_PORT") { "5432" } %>
  username: <%= ENV.fetch("POSTGRES_USER") { "postgres" } %>
  password: <%= ENV.fetch("POSTGRES_PASSWORD") { "" } %>
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment