Skip to content

Commit

Permalink
Test database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed Nov 25, 2022
1 parent cc23422 commit 5d15629
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Rails stuff
/db/*.sqlite3
/db/*.sqlite3-*
/config/database.yml
/config/secrets.yml
/config/smtp.yml
/log/*
Expand Down
36 changes: 36 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d15629

Please sign in to comment.