test/rails_app/config/database.yml in simple-layout-0.1.2 vs test/rails_app/config/database.yml in simple-layout-0.2.0
- old
+ new
@@ -1,25 +1,24 @@
-# SQLite version 3.x
-# gem install sqlite3
-#
-# Ensure the SQLite 3 gem is defined in your Gemfile
-# gem 'sqlite3'
-development:
+sqlite3mem: &SQLITE3MEM
adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
+ database: ":memory:"
-# 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:
+sqlite3: &SQLITE
adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
+ database: acts_as_audited_plugin.sqlite3.db
-production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
+postgresql: &POSTGRES
+ adapter: postgresql
+ username: postgres
+ password: postgres
+ database: acts_as_audited_plugin_test
+ min_messages: ERROR
+
+mysql: &MYSQL
+ adapter: mysql
+ host: localhost
+ username: root
+ password:
+ database: acts_as_audited_plugin_test
+
+test:
+ <<: *<%= ENV['DB'] || 'SQLITE3MEM' %>