Class: DatabaseCleaner::ActiveRecord::Surgicalstrike
Instance Attribute Summary
Attributes included from Base
#connection_hash
Instance Method Summary
collapse
#initialize
#checktarget
Methods included from Base
#connection_klass, #create_connection_klass, #db, #db=, #load_config
#db, included
Instance Method Details
#clean ⇒ Object
43
44
45
|
# File 'lib/database_cleaner/active_record/surgicalstrike.rb', line 43
def clean
strike_tables
end
|
#start ⇒ Object
36
37
38
39
40
41
|
# File 'lib/database_cleaner/active_record/surgicalstrike.rb', line 36
def start
connection = connection_klass.connection
$strike_targets = tables_to_strike(connection)
$vips = Array.new
end
|