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

#truncate_tables, #views

Instance Method Details

#truncate_table(table_name) ⇒ Object



57
58
59
# File 'lib/database_cleaner/active_record/truncation.rb', line 57

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