bdurand / seamless_database_pool

Add support for master/slave database clusters in ActiveRecord to improve performance.
http://rdoc.info/projects/bdurand/seamless_database_pool
MIT License
224 stars 58 forks source link

destructive db rake tasks no longer work in Rails 5 #31

Closed wjordan closed 7 years ago

wjordan commented 8 years ago

As a result of the rails/rails#22967 feature added in Rails 5, the :environment task (via :check_protected_environments) is now a dependency of all 'destructive' db rake tasks. Because of this, the railtie-overridden configuration at ActiveRecord::Base.configurations is overridden again by a railtie in ActiveRecord, causing these rake tasks to be skipped (because the database property is not found`) whenever a seamless_database_pool adapter is used.