Class: ActiveRecord::ConnectionAdapters::IBM_DBAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/database_cleaner/active_record/truncation.rb

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#views

Instance Method Details

#truncate_table(table_name) ⇒ Object



38
39
40
# File 'lib/database_cleaner/active_record/truncation.rb', line 38

def truncate_table(table_name)
  execute("TRUNCATE #{quote_table_name(table_name)} IMMEDIATE")
end