Class: ActiveRecord::ConnectionAdapters::Mysql2Adapter

Inherits:
AbstractAdapter
  • Object
show all
Defined in:
lib/blueprints/database_cleaner_fix.rb

Instance Method Summary collapse

Instance Method Details

#truncate_table(table_name) ⇒ Object



4
5
6
# File 'lib/blueprints/database_cleaner_fix.rb', line 4

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