Module: DatabaseCleaner::ActiveRecord

Defined in:
lib/database_cleaner/active_record/base.rb,
lib/database_cleaner/active_record/deletion.rb,
lib/database_cleaner/active_record/truncation.rb,
lib/database_cleaner/active_record/transaction.rb

Defined Under Namespace

Modules: Base Classes: Deletion, Transaction, Truncation

Class Method Summary (collapse)

Class Method Details

+ (Object) available_strategies



8
9
10
# File 'lib/database_cleaner/active_record/base.rb', line 8

def self.available_strategies
  %w[truncation transaction deletion]
end

+ (Object) config_file_location



16
17
18
# File 'lib/database_cleaner/active_record/base.rb', line 16

def self.config_file_location
  @config_file_location ||= "#{DatabaseCleaner.app_root}/config/database.yml"
end

+ (Object) config_file_location=(path)



12
13
14
# File 'lib/database_cleaner/active_record/base.rb', line 12

def self.config_file_location=(path)
  @config_file_location = path
end