Class: DatastaxRails::Cql::DropIndex

Inherits:
Base show all
Defined in:
lib/datastax_rails/cql/drop_index.rb

Overview

CQL generation for DROP INDEX

Instance Method Summary collapse

Methods inherited from Base

#execute, #using

Constructor Details

#initialize(index_name) ⇒ DropIndex


5
6
7
# File 'lib/datastax_rails/cql/drop_index.rb', line 5

def initialize(index_name)
  @index_name = index_name
end

Instance Method Details

#to_cqlObject


9
10
11
# File 'lib/datastax_rails/cql/drop_index.rb', line 9

def to_cql
  "DROP INDEX #{@index_name}"
end