Method: Cequel::Record::List#clear
- Defined in:
- lib/cequel/record/collection.rb
#clear ⇒ List
Remove all elements from the list. This will propagate to the database as a DELETE of the list column.
254 255 256 257 |
# File 'lib/cequel/record/collection.rb', line 254 def clear to_update { deleter.delete_columns(column_name) } to_modify { super } end |