database.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # PostgreSQL. Versions 9.3 and up are supported.
  2. #
  3. # Install the pg driver:
  4. # gem install pg
  5. # On macOS with Homebrew:
  6. # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
  7. # On macOS with MacPorts:
  8. # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
  9. # On Windows:
  10. # gem install pg
  11. # Choose the win32 build.
  12. # Install PostgreSQL and put its /bin directory on your path.
  13. #
  14. # Configure Using Gemfile
  15. # gem 'pg'
  16. #
  17. default: &default
  18. adapter: postgresql
  19. encoding: unicode
  20. # For details on connection pooling, see Rails configuration guide
  21. # https://guides.rubyonrails.org/configuring.html#database-pooling
  22. pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  23. development:
  24. <<: *default
  25. database: mint
  26. # The specified database role being used to connect to postgres.
  27. # To create additional roles in postgres see `$ createuser --help`.
  28. # When left blank, postgres will use the default role. This is
  29. # the same name as the operating system user running Rails.
  30. username: postgres
  31. # The password associated with the postgres role (username).
  32. #password:
  33. # Connect on a TCP socket. Omitted by default since the client uses a
  34. # domain socket that doesn't need configuration. Windows does not have
  35. # domain sockets, so uncomment these lines.
  36. #host: localhost
  37. # The TCP port the server listens on. Defaults to 5432.
  38. # If your server runs on a different port number, change accordingly.
  39. #port: 5432
  40. # Schema search path. The server defaults to $user,public
  41. #schema_search_path: myapp,sharedapp,public
  42. # Minimum log levels, in increasing order:
  43. # debug5, debug4, debug3, debug2, debug1,
  44. # log, notice, warning, error, fatal, and panic
  45. # Defaults to warning.
  46. #min_messages: notice
  47. # Warning: The database defined as "test" will be erased and
  48. # re-generated from your development database when you run "rake".
  49. # Do not set this db to the same as development or production.
  50. test:
  51. <<: *default
  52. database: mint_test
  53. # As with config/credentials.yml, you never want to store sensitive information,
  54. # like your database password, in your source code. If your source code is
  55. # ever seen by anyone, they now have access to your database.
  56. #
  57. # Instead, provide the password or a full connection URL as an environment
  58. # variable when you boot the app. For example:
  59. #
  60. # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
  61. #
  62. # If the connection URL is provided in the special DATABASE_URL environment
  63. # variable, Rails will automatically merge its configuration values on top of
  64. # the values provided in this file. Alternatively, you can specify a connection
  65. # URL environment variable explicitly:
  66. #
  67. # production:
  68. # url: <%= ENV['MY_APP_DATABASE_URL'] %>
  69. #
  70. # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
  71. # for a full overview on how database connection configuration can be specified.
  72. #
  73. production:
  74. <<: *default
  75. database: mint_production
  76. username: mint
  77. password: <%= ENV['MINT_DATABASE_PASSWORD'] %>