examples/column_families.rb in cassanity-0.2.1 vs examples/column_families.rb in cassanity-0.2.2
- old
+ new
@@ -4,11 +4,10 @@
client = CassandraCQL::Database.new('127.0.0.1:9160')
executor = Cassanity::Executors::CassandraCql.new(client: client)
connection = Cassanity::Connection.new(executor: executor)
keyspace = connection['cassanity_examples']
-keyspace.drop if connection.keyspace?('cassanity_examples')
-keyspace.create
+keyspace.recreate
apps_schema = Cassanity::Schema.new({
primary_key: :id,
columns: {
id: :text,