Class: Cequel::Schema::Patch::AddColumn

Inherits:
AbstractChange show all
Defined in:
lib/cequel/schema/patch.rb

Overview

Since:

  • 1.0.0

Instance Attribute Summary collapse

Attributes inherited from AbstractChange

#table

Instance Method Summary collapse

Methods inherited from AbstractChange

#==, #eql?, #inspect

Instance Attribute Details

#columnObject (readonly)

Since:

  • 1.0.0



119
120
121
# File 'lib/cequel/schema/patch.rb', line 119

def column
  @column
end

Instance Method Details

#to_cqlObject

Since:

  • 1.0.0



121
122
123
# File 'lib/cequel/schema/patch.rb', line 121

def to_cql
  %Q|ALTER TABLE "#{table.name}" ADD #{column.to_cql}|
end