class Cequel::Schema::Patch::AddIndex
Attributes
column[R]
index_name[R]
Public Instance Methods
to_cql()
click to toggle source
# File lib/cequel/schema/patch.rb, line 101 def to_cql %Q|CREATE INDEX "#{index_name}" ON "#{table.name}" ("#{column.name}")| end
Protected Instance Methods
post_init(column)
click to toggle source
# File lib/cequel/schema/patch.rb, line 94 def post_init(column) @column = column @index_name = column.index_name end
subclass_eql?(other)
click to toggle source
# File lib/cequel/schema/patch.rb, line 107 def subclass_eql?(other) other.column == column && other.index_name == index_name end