Skip to content

Instantly share code, notes, and snippets.

View skorbut's full-sized avatar

Karsten Senz skorbut

  • Hamburg, Germany
View GitHub Profile
@skorbut
skorbut / keyspace_helper.rb
Created March 19, 2014 14:05
Provide truncate and destroy_all support through cequel
class KeyspaceHelper
attr_reader :connection
def initialize
@connection = Cequel::Record.connection
end
def destroy_all
for_all_cequel_records do |clazz|
clazz.destroy_all