1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides
eileencodes 770e12fddc
Move multi-db config options to middleware
This doesn't really make sense in the production config especially since
you probably want to use it in all of your environments. This change
moves the database and shard swapping configuration options into a
generator. The generator can be run like this:

```
bin/rails g active_record:automatic_swapping
```

This change allows apps to add additional configuration for multiple
databases all in one place.

The config options can still be defined in the environment config if
desired but this cleans up the default config for new applications
especially since new applications probably don't need multiple
databases.
2021-12-08 13:01:04 -05:00
..
assets Merge pull request #42989 from jharrilim/patch-2 2021-09-20 16:28:14 -04:00
bug_report_templates Start Rails 7.1 development 2021-12-07 15:52:30 +00:00
rails_guides Render copy-to-clipboard text in element attribute [ci-skip] 2021-07-23 12:52:10 -05:00
source Move multi-db config options to middleware 2021-12-08 13:01:04 -05:00
.document
CHANGELOG.md Start Rails 7.1 development 2021-12-07 15:52:30 +00:00
rails_guides.rb Use safe nav operator when calling RailsGuides::Generator.new 2018-12-05 12:41:07 +09:00
Rakefile Remove non-existing encoding task dependency 2021-11-12 17:00:33 +00:00
w3c_validator.rb