Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/ar_truncator/active_record/base.rb
Class Method Summary collapse
Class Method Details
.truncate ⇒ Object
4 5 6 7 |
# File 'lib/ar_truncator/active_record/base.rb', line 4 def truncate statement = "TRUNCATE table #{self.table_name}" self.connection.execute(statement) end |