Class: ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ApplicationRecord
- Defined in:
- lib/generators/dunlop/install/base/templates/models/application_record.rb
Direct Known Subclasses
Dunlop::ExecutionBatch, Dunlop::LastAttributeChange, Dunlop::LogEntry, Dunlop::TargetFileDownload, SourceFile, TargetFile, User, WorkflowInstance, WorkflowInstanceBatch
Class Method Summary collapse
Class Method Details
.truncate ⇒ Object
6 7 8 9 |
# File 'lib/generators/dunlop/install/base/templates/models/application_record.rb', line 6 def truncate #connection_pool.with_connection { |c| c.truncate table_name } delete_all end |