diff --git a/.gitignore b/.gitignore index b618c7c5fb..e3229c2841 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ # Rails stuff /db/*.sqlite3 /db/*.sqlite3-* -/config/database.yml /config/secrets.yml /config/smtp.yml /log/* diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000000..196f708f89 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,36 @@ +# 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 + +# MySQL version - make sure the mysql2 gem is included in your Gemfile +# If you uncomment this development: block, comment the previous one. +# development: +# adapter: mysql2 +# encoding: utf8 +# collation: utf8_bin +# database: dradis_dev +# username: root +# socket: /tmp/mysql.sock + + +# 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