diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2017-06-05 23:19:00 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2017-07-16 14:39:09 +0200 |
commit | 1acd9a6464668d4d54ab30d016829f60b70dbbeb (patch) | |
tree | 4723a83664338541f6cfd8d49f8dbb0ebbc0466d /railties/CHANGELOG.md | |
parent | 16f2b2044eaaa54b7bc205ef9af1689a152b2fdf (diff) | |
download | rails-1acd9a6464668d4d54ab30d016829f60b70dbbeb.tar.gz rails-1acd9a6464668d4d54ab30d016829f60b70dbbeb.tar.bz2 rails-1acd9a6464668d4d54ab30d016829f60b70dbbeb.zip |
Allow to pass a connection to the `dbconsole` command
Since 0a4f6009, it's possible to specify a 3-level database
configuration to gather connections by environment.
The `dbconsole` command will try to look for a database configuration
which points to the current environment but with such flavour, the
environment key is flushed out so let's add the ability to specify
the connection and pick `primary` by default to be consistent with
Active Record.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r-- | railties/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 5ea007bc33..1c93f7408c 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,10 @@ +* Allow to pass a custom connection name to the `rails dbconsole` + command when using a 3-level database configuration. + + $ bin/rails dbconsole -c replica + + *Robin Dupret*, *Jeremy Daer* + * Skip unused components when running `bin/rails app:update`. If the initial app generation skipped Action Cable, Active Record etc., |