From b5afc0cf9db8d50d1d95fc2c2fe8b451f8825b46 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 13:31:31 -0500 Subject: Moved secret base, Akismet, Sendgrid, and database keys into credentials --- config/database.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config/database.yml (limited to 'config/database.yml') 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 @@ +# 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: + <<: *default + database: db/development.sqlite3 + +# 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: mysql2 + encoding: utf8mb4 + database: thoughts + pool: 5 + username: thoughts + password: <%= Rails.application.credentials.database_password %> + collation: utf8mb4_bin + socket: /var/run/mysqld/mysqld.sock -- cgit 1.4.1