test/environments/rails31/config/database.yml in newrelic_rpm-3.6.8.168 vs test/environments/rails31/config/database.yml in newrelic_rpm-3.6.9.171
- old
+ new
@@ -1,27 +1,22 @@
-# Shared properties for mysql db
mysql: &mysql
adapter: mysql
socket: <%= (`uname -s` =~ /Linux/ ) ? "" :"/tmp/mysql.sock" %>
username: root
host: localhost
- database: rails_blog
+ database: <%= db = "#{ENV['RUBY_VERSION']}#{ENV['BRANCH']}"; db.empty? ? "rails_blog" : db %>
-# Shared properties for postgres. This won't work with our schema but
-# Does work with agent tests
sqlite3: &sqlite3
<% if defined?(JRuby) %>
adapter: jdbcsqlite3
<% else %>
adapter: sqlite3
<% end %>
database: db/all.sqlite3
pool: 5
timeout: 5000
host: localhost
-
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
+
development:
<<: *sqlite3
test:
<<: *mysql