Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cassandra_migrate connects to Cassandra every time our rails application starts up #87

Closed
cosgroveb opened this issue May 25, 2016 · 1 comment

Comments

@cosgroveb
Copy link
Contributor

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?

@cosgroveb
Copy link
Contributor Author

We're going to add require => false for cassandra_migrations in our application Gemfile and require it manually in our custom migration tasks.

@cosgroveb 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant