From 7257a2a5a98a21d1b0f49690845cd38e2416e376 Mon Sep 17 00:00:00 2001 From: JuliusR <> Date: Sun, 19 Dec 2021 10:07:14 +0100 Subject: [PATCH] replace database.yml by database.yml.SAMPLE (now mysql2 only) --- config/database.yml | 25 ------------------------- config/database.yml.SAMPLE | 9 +++++++++ 2 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 config/database.yml create mode 100644 config/database.yml.SAMPLE diff --git a/config/database.yml b/config/database.yml deleted file mode 100644 index 4a8a1b2..0000000 --- a/config/database.yml +++ /dev/null @@ -1,25 +0,0 @@ -# SQLite. Versions 3.8.0 and up are supported. -# 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: - <<: *default - database: db/production.sqlite3 diff --git a/config/database.yml.SAMPLE b/config/database.yml.SAMPLE new file mode 100644 index 0000000..99c35a7 --- /dev/null +++ b/config/database.yml.SAMPLE @@ -0,0 +1,9 @@ +development: + adapter: mysql2 + encoding: utf8 + reconnect: false + database: development + pool: 5 + username: root + password: secret + host: mysql