Module: Dbreap::Empty
- Defined in:
- lib/dbreap/empty.rb
Class Method Summary collapse
Class Method Details
.call(connection = ActiveRecord::Base.connection) ⇒ Object
5 6 7 8 |
# File 'lib/dbreap/empty.rb', line 5 def self.call(connection = ActiveRecord::Base.connection) tables = connection.tables - Dbreap::SKIP_TABLES tables.each { |t| connection.delete("DELETE FROM #{connection.quote_table_name(t)}") } end |