Skip to content
  • eileencodes's avatar
    770e12fd
    Move multi-db config options to middleware · 770e12fd
    eileencodes authored
    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.
    770e12fd
    Move multi-db config options to middleware
    eileencodes authored
    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.
Loading