Class: ActiveRecord::ConnectionAdapters::MysqlAdapter

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

Instance Method Summary collapse

Instance Method Details

#can_truncate_multiple?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/database_cleaner/active_record/truncation.rb', line 7

def can_truncate_multiple?
  false
end

#truncate_table(table_name) ⇒ Object



10
11
12
# File 'lib/database_cleaner/active_record/truncation.rb', line 10

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