Module: ActiveRecordShards::Tasks
- Defined in:
- lib/active_record_shards/tasks.rb
Class Method Summary collapse
Class Method Details
.root_connection(conf) ⇒ Object
93 94 95 |
# File 'lib/active_record_shards/tasks.rb', line 93 def self.root_connection(conf) ActiveRecord::Base.send("#{conf['adapter']}_connection", conf.merge('database' => nil)) end |