Class: DB::Model::Table
Instance Attribute Summary
Attributes inherited from Relation
Instance Method Summary collapse
Methods inherited from Relation
#create, #each, #find, #first, #initialize, #insert, #inspect, #new, #predicate, #preload, #select, #to_a, #to_s, #update_cache, #where
Methods included from Countable
Methods included from Deletable
Constructor Details
This class inherits a constructor from DB::Model::Relation
Instance Method Details
#cache_key ⇒ Object
29 30 31 |
# File 'lib/db/model/table.rb', line 29 def cache_key [@model] end |
#truncate ⇒ Object
33 34 35 |
# File 'lib/db/model/table.rb', line 33 def truncate Statement::Truncate.new(@model).call(@context) end |