Skip to content
  • George Claghorn's avatar
    a50d2f19
    Extract ActiveStorage::Record · a50d2f19
    George Claghorn authored
    Permit applications to hack in custom DB config for ASt models until ASt has first-class multi-DB support:
    
        ActiveSupport.on_load(:active_storage_record) do
          connects_to reading: :active_storage_replica, writing: :active_storage_primary
        end
    
    rebase
    a50d2f19
    Extract ActiveStorage::Record
    George Claghorn authored
    Permit applications to hack in custom DB config for ASt models until ASt has first-class multi-DB support:
    
        ActiveSupport.on_load(:active_storage_record) do
          connects_to reading: :active_storage_replica, writing: :active_storage_primary
        end
    
    rebase
Loading