diff options
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000..78f158b --- /dev/null +++ b/config/database.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | # SQLite version 3.x | ||
2 | # gem install sqlite3 | ||
3 | # | ||
4 | # Ensure the SQLite 3 gem is defined in your Gemfile | ||
5 | # gem 'sqlite3' | ||
6 | # | ||
7 | default: &default | ||
8 | adapter: sqlite3 | ||
9 | pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
10 | timeout: 5000 | ||
11 | |||
12 | development: | ||
13 | <<: *default | ||
14 | database: db/development.sqlite3 | ||
15 | |||
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 | test: | ||
20 | <<: *default | ||
21 | database: db/test.sqlite3 | ||
22 | |||
23 | production: | ||
24 | adapter: mysql2 | ||
25 | encoding: utf8mb4 | ||
26 | database: thoughts | ||
27 | pool: 5 | ||
28 | username: thoughts | ||
29 | password: <%= Rails.application.credentials.database_password %> | ||
30 | collation: utf8mb4_bin | ||
31 | socket: /var/run/mysqld/mysqld.sock | ||