1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
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
..
active_record Fix RDoc comment for MigrationContext.migrate 2021-12-08 11:49:14 +01:00
arel Use nested queries when doing DELETE and GROUP_BY and HAVINAG clauses present. 2021-11-01 21:39:20 -04:00
rails/generators Move multi-db config options to middleware 2021-12-08 13:01:04 -05:00
active_record.rb Add authenticate_by when using has_secure_password 2021-12-03 10:06:43 -06:00
arel.rb