Method: Cequel::Record::Callbacks#destroy

Defined in:
lib/cequel/record/callbacks.rb

#destroy(options = {}) ⇒ Record

Remove this record from the database

Parameters:

  • options (Options) (defaults to: {})

    options for deletion

Options Hash (options):

  • :consistency (Symbol) — default: :quorum

    what consistency with which to persist the deletion

  • :timestamp (Time)

    the writetime to use for the deletion

Returns:



40
41
42
43
44
# File 'lib/cequel/record/callbacks.rb', line 40

def destroy(options = {})
  connection.batch(options.slice(:consistency)) do
    run_callbacks(:destroy) { super }
  end
end