|
1 | | -# SQLite. Versions 3.8.0 and up are supported. |
2 | | -# gem install sqlite3 |
3 | | -# |
4 | | -# Ensure the SQLite 3 gem is defined in your Gemfile |
5 | | -# gem "sqlite3" |
6 | | -# |
7 | 1 | default: &default |
8 | | - adapter: sqlite3 |
| 2 | + adapter: postgresql |
| 3 | + encoding: unicode |
| 4 | + # For details on connection pooling, see Rails configuration guide |
| 5 | + # https://guides.rubyonrails.org/configuring.html#database-pooling |
9 | 6 | pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> |
10 | | - timeout: 5000 |
11 | 7 |
|
12 | 8 | development: |
13 | 9 | <<: *default |
14 | | - database: storage/development.sqlite3 |
| 10 | + database: blade_ruby_lang_org_development |
| 11 | + |
| 12 | + #username: blade_ruby_lang_org |
| 13 | + #password: |
| 14 | + |
| 15 | + #host: localhost |
| 16 | + #port: 5432 |
| 17 | + |
| 18 | + # Schema search path. The server defaults to $user,public |
| 19 | + #schema_search_path: myapp,sharedapp,public |
| 20 | + |
| 21 | + # Minimum log levels, in increasing order: |
| 22 | + # debug5, debug4, debug3, debug2, debug1, |
| 23 | + # log, notice, warning, error, fatal, and panic |
| 24 | + # Defaults to warning. |
| 25 | + #min_messages: notice |
15 | 26 |
|
16 | | -# Warning: The database defined as "test" will be erased and |
17 | | -# re-generated from your development database when you run "rake". |
18 | | -# Do not set this db to the same as development or production. |
19 | 27 | test: |
20 | 28 | <<: *default |
21 | | - database: storage/test.sqlite3 |
| 29 | + database: blade_ruby_lang_org_test |
22 | 30 |
|
| 31 | +# As with config/credentials.yml, you never want to store sensitive information, |
| 32 | +# like your database password, in your source code. If your source code is |
| 33 | +# ever seen by anyone, they now have access to your database. |
| 34 | +# |
| 35 | +# Instead, provide the password or a full connection URL as an environment |
| 36 | +# variable when you boot the app. For example: |
| 37 | +# |
| 38 | +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" |
| 39 | +# |
| 40 | +# If the connection URL is provided in the special DATABASE_URL environment |
| 41 | +# variable, Rails will automatically merge its configuration values on top of |
| 42 | +# the values provided in this file. Alternatively, you can specify a connection |
| 43 | +# URL environment variable explicitly: |
| 44 | +# |
| 45 | +# production: |
| 46 | +# url: <%= ENV["MY_APP_DATABASE_URL"] %> |
| 47 | +# |
| 48 | +# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database |
| 49 | +# for a full overview on how database connection configuration can be specified. |
| 50 | +# |
23 | 51 | production: |
24 | | - <<: *default |
25 | | - database: storage/production.sqlite3 |
| 52 | + primary: &primary_production |
| 53 | + <<: *default |
| 54 | + database: blade_ruby_lang_org_production |
| 55 | + username: blade_ruby_lang_org |
| 56 | + password: <%= ENV["R81_PG_DATABASE_PASSWORD"] %> |
| 57 | + cache: |
| 58 | + <<: *primary_production |
| 59 | + database: blade_ruby_lang_org_production_cache |
| 60 | + migrations_paths: db/cache_migrate |
| 61 | + queue: |
| 62 | + <<: *primary_production |
| 63 | + database: blade_ruby_lang_org_production_queue |
| 64 | + migrations_paths: db/queue_migrate |
| 65 | + cable: |
| 66 | + <<: *primary_production |
| 67 | + database: blade_ruby_lang_org_production_cable |
| 68 | + migrations_paths: db/cable_migrate |
0 commit comments