Sha256: 68cf978ea08dc4b008334e67fa540300657e9b0ab810912e5d5af4f47c2f2511
Contents?: true
Size: 557 Bytes
Versions: 32
Compression:
Stored size: 557 Bytes
Contents
require 'database_cleaner/generic/base' module DatabaseCleaner module Sequel def self.available_strategies %w[truncation transaction] end module Base include ::DatabaseCleaner::Generic::Base def db=(desired_db) @db = desired_db end def db return @db if @db && @db != :default raise "As you have more than one active sequel database you have to specify the one to use manually!" if ::Sequel::DATABASES.count > 1 ::Sequel::DATABASES.first || :default end end end end
Version data entries
32 entries across 21 versions & 5 rubygems