Class: Cequel::Schema::Patch::AddIndex
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- Cequel::Schema::Patch::AddIndex
- Defined in:
- lib/cequel/schema/patch.rb
Overview
Instance Attribute Summary collapse
- #column ⇒ Object readonly
- #index_name ⇒ Object readonly
Attributes inherited from AbstractChange
Instance Method Summary collapse
Methods inherited from AbstractChange
Instance Attribute Details
#column ⇒ Object (readonly)
100 101 102 |
# File 'lib/cequel/schema/patch.rb', line 100 def column @column end |
#index_name ⇒ Object (readonly)
100 101 102 |
# File 'lib/cequel/schema/patch.rb', line 100 def index_name @index_name end |
Instance Method Details
#to_cql ⇒ Object
102 103 104 |
# File 'lib/cequel/schema/patch.rb', line 102 def to_cql %Q|CREATE INDEX "#{index_name}" ON "#{table.name}" ("#{column.name}")| end |