Sha256: f37feb263d5ff79a92bbd21bc8c41fb3b12333b5e715b7f915af900e23faf7f3
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
module SeamlessDatabasePool class Railtie < ::Rails::Railtie rake_tasks do namespace :db do task :load_config do # Override seamless_database_pool configuration so db:* rake tasks work as expected. original_config = Rails.application.config.database_configuration ActiveRecord::Base.configurations = SeamlessDatabasePool.master_database_configuration(original_config) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems