Module: Switchman::ActiveRecord::Tasks::DatabaseTasks
- Defined in:
- lib/switchman/active_record/tasks/database_tasks.rb
Instance Method Summary collapse
Instance Method Details
#drop ⇒ Object
7 8 9 10 11 12 |
# File 'lib/switchman/active_record/tasks/database_tasks.rb', line 7 def drop(*) super # no really, it's gone Switchman.cache.delete("default_shard") Shard.default(reload: true) end |
#raise_for_multi_db ⇒ Object
14 15 16 17 |
# File 'lib/switchman/active_record/tasks/database_tasks.rb', line 14 def raise_for_multi_db(*) # ignore; Switchman doesn't use namespaced tasks for multiple shards; it uses # environment variables to filter which shards you want to target end |