Class: ActiveRecord::ConnectionAdapters::SQLite3Adapter

Inherits:
SQLITE_ADAPTER_PARENT
  • Object
show all
Defined in:
lib/database_cleaner/active_record/truncation.rb

Instance Method Summary collapse

Instance Method Details

#delete_table(table_name) ⇒ Object Also known as: truncate_table



44
45
46
# File 'lib/database_cleaner/active_record/truncation.rb', line 44

def delete_table(table_name)
  execute("DELETE FROM #{quote_table_name(table_name)};")
end