Closed johnrees closed 9 years ago
I think it might be a spring issue.
I am using the rubystax driver now and this initializer seems to work
Spring.after_fork do
require 'cassandra'
cluster = Cassandra.cluster
$cassandra ||= cluster.connect(ENV['keyspace'])
end
Thanks John, I'll see if I can add that to the initialization routine by checking for Spring's presence. Cheers!
John. Try my patch form here https://github.com/integrallis/cassandra_migrations.git and see if that works. Let me know and I'll figure out how to write a test for it.
I'm trying to get set up with rails-api 4.2, ruby 2.2 (rbenv) and hombrew's cassandra.
I've created my keyspace and run my first migration, but when I go into rails console and run
CassandraMigrations::Cassandra.select(:readings)
I get the following error...
Any ideas? I was up and running fine with cequel, but I really want to use this gem because I like having the migrations. Thanks