You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although we probably want our application to die if it itself cannot connect to Cassandra, we find it a little weird that the migrator gem by virtue of its railtie actually connects to our keyspace during application startup regardless of whether or not we're invoking a cassandra migration rake task.
cosgroveb
changed the title
cassandra_migrat connects to Cassandra every time our rails application starts up
cassandra_migrate connects to Cassandra every time our rails application starts up
May 25, 2016
Although we probably want our application to die if it itself cannot connect to Cassandra, we find it a little weird that the migrator gem by virtue of its railtie actually connects to our keyspace during application startup regardless of whether or not we're invoking a cassandra migration rake task.
https://github.com/hsgubert/cassandra_migrations/blob/master/lib/cassandra_migrations/railtie.rb#L5
It seems like it would be more appropriate to move this logic (ultimately
Cassandra.start!
) into the start of every rake task. Thoughts?The text was updated successfully, but these errors were encountered: