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
.available_strategies ⇒ Object
8
9
10
|
# File 'lib/database_cleaner/active_record/base.rb', line 8
def self.available_strategies
%w[truncation transaction deletion]
end
|
.config_file_location ⇒ Object
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
|
.config_file_location=(path) ⇒ Object
12
13
14
|
# File 'lib/database_cleaner/active_record/base.rb', line 12
def self.config_file_location=(path)
@config_file_location = path
end
|