aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJohn Crepezzi <seejohnrun@github.com>2019-07-26 00:49:38 -0400
committerJohn Crepezzi <seejohnrun@github.com>2019-07-26 17:32:14 -0400
commit7df0eefacf1b6cbfdad8775ac86c6917f16bf859 (patch)
tree7e91b859acdb7230e5f82cfdb8310c953591e09b /activerecord/CHANGELOG.md
parent41bc4c6207147a5eeafa323d763e66c06e61cacf (diff)
downloadrails-7df0eefacf1b6cbfdad8775ac86c6917f16bf859.tar.gz
rails-7df0eefacf1b6cbfdad8775ac86c6917f16bf859.tar.bz2
rails-7df0eefacf1b6cbfdad8775ac86c6917f16bf859.zip
Allow separate database env variables per-connection
This commit adds a feature which allows separate database ENV variables to be defined for each spec in a 3-tier config. The names for the environment variables will be `#{name.upcase}_DATABASE_URL` This commit also introduces a change in behavior around handling of `DATABASE_URL`. Instead of using `DATABASE_URL` to change _all_ specs in a multi-database configuration, it will now only affect the `primary` connection.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 2af48f99db..366032c734 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Make the DATABASE_URL env variable only affect the primary connection. Add new env variables for multiple databases.
+
+ *John Crepezzi*, *Eileen Uchitelle*
+
* Add a warning for enum elements with 'not_' prefix.
class Foo
@@ -56,5 +60,4 @@
*Michael Duchemin*
-
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activerecord/CHANGELOG.md) for previous changes.