Module: DatastaxRails::CassandraOnlyModel

Extended by:
ActiveSupport::Concern
Included in:
PayloadModel
Defined in:
lib/datastax_rails/cassandra_only_model.rb

Overview

A module designed for models that will only interact with Cassandra. Classes that include this will not generate Solr schemas or have any communication with Solr. If an application only uses these models then it should be possible to run with pure Cassandra and no Solr at all.

If you want to search by anything other than primary_key, you will need to add CQL indexes as they are not created by default.

class Model < DatastaxRails::Base
  include DatastaxRails::CassandraOnlyModel

  uuid :id
  string :name, :cql_index => true
end

Defined Under Namespace

Modules: ClassMethods