Module: DatabaseCleaner::OctopusSharding
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/database_cleaner/octopus_sharding.rb,
lib/database_cleaner/octopus_sharding/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
Instance Method Details
#clean_with_octopus ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/database_cleaner/octopus_sharding.rb', line 22 def clean_with_octopus if ::Octopus.enabled? each_shard do clean_without_octopus end else clean_without_octopus end end |
#start_with_octopus ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/database_cleaner/octopus_sharding.rb', line 12 def start_with_octopus if ::Octopus.enabled? each_shard do start_without_octopus end else start_without_octopus end end |