Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 502 Bytes
require 'pp'
require 'pathname'
require 'rubygems'
root_path = Pathname(__FILE__).dirname.join('..').expand_path
lib_path = root_path.join('lib')
$:.unshift(lib_path)
require 'adapter/cassanity'
client = Cassanity::Client.new('127.0.0.1:9160')
keyspace = client.keyspace(:adapter_cassanity)
keyspace.recreate
AppsCF = keyspace.column_family(:apps, {
schema: Cassanity::Schema.new({
primary_key: :id,
columns: {
id: :timeuuid,
name: :text,
}
}),
})
AppsCF.create